- Preparing search index...
- The search index is not available
ad-llama
LoadedModel: { bias: Bias; cancel: (() => Promise<void>); decode: ((tokens) => string); encode: ((text) => number[]); generate: ((params,
config?) => Promise<string>); totalTokenCount: number; }
Type declaration
-
-
cancel: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
decode: ((tokens) => string)
-
- (tokens): string
-
Returns string
-
encode: ((text) => number[])
-
- (text): number[]
-
Returns number[]
-
generate: ((params, config?) => Promise<string>)
-
- (params, config?): Promise<string>
-
Parameters
-
params: {
preprompt?: string;
priorCompletion: string;
prompt: string;
stops: string[];
system?: string;
}
-
Optional
preprompt?: string
-
priorCompletion: string
-
prompt: string
-
stops: string[]
-
Optional
system?: string
-
Returns Promise<string>
-
totalTokenCount: number
The loaded model to give to ad to create an ad context.