From c2a616573e41e1c3f7fdb09f1dd4b48396b212e6 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Tue, 3 Jun 2025 14:51:45 -0700 Subject: [PATCH] add autocompleteOptions for ILLM interface --- core/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/index.d.ts b/core/index.d.ts index ad778d3d8..ba3712d05 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -94,6 +94,8 @@ export interface ILLM get providerName(): string; get underlyingProviderName(): string; + autocompleteOptions?: Partial; + complete( prompt: string, signal: AbortSignal, @@ -563,6 +565,7 @@ export interface LLMOptions { uniqueId?: string; baseAgentSystemMessage?: string; baseChatSystemMessage?: string; + autocompleteOptions?: Partial; contextLength?: number; maxStopWords?: number; completionOptions?: CompletionOptions; @@ -1090,6 +1093,7 @@ export interface RerankerDescription { params?: { [key: string]: any }; } +// TODO: We should consider renaming this to AutocompleteOptions. export interface TabAutocompleteOptions { disable: boolean; maxPromptTokens: number;