add autocompleteOptions for ILLM interface
This commit is contained in:
parent
d2a0db01eb
commit
c2a616573e
1 changed files with 4 additions and 0 deletions
4
core/index.d.ts
vendored
4
core/index.d.ts
vendored
|
|
@ -94,6 +94,8 @@ export interface ILLM
|
|||
get providerName(): string;
|
||||
get underlyingProviderName(): string;
|
||||
|
||||
autocompleteOptions?: Partial<TabAutocompleteOptions>;
|
||||
|
||||
complete(
|
||||
prompt: string,
|
||||
signal: AbortSignal,
|
||||
|
|
@ -563,6 +565,7 @@ export interface LLMOptions {
|
|||
uniqueId?: string;
|
||||
baseAgentSystemMessage?: string;
|
||||
baseChatSystemMessage?: string;
|
||||
autocompleteOptions?: Partial<TabAutocompleteOptions>;
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue