跳转到内容

大语言模型

定义于:.build/typescript/packages/core/src/llms/type.ts:28

统一语言模型接口

AdditionalChatOptions extends object = object

AdditionalMessageOptions extends object = object

metadata: LLMMetadata

定义于:.build/typescript/packages/core/src/llms/type.ts:32

chat(params): Promise<AsyncIterable<ChatResponseChunk<object>, any, any>>

定义于:.build/typescript/packages/core/src/llms/type.ts:36

从大语言模型获取聊天响应

LLMChatParamsStreaming<AdditionalChatOptions, AdditionalMessageOptions>

Promise<AsyncIterable<ChatResponseChunk<object>, any, any>>

originalMethod.__type

chat(params): Promise<ChatResponse<AdditionalMessageOptions>>

定义于:.build/typescript/packages/core/src/llms/type.ts:42

LLMChatParamsNonStreaming<AdditionalChatOptions, AdditionalMessageOptions>

Promise<ChatResponse<AdditionalMessageOptions>>

originalMethod.__type


complete(params): Promise<AsyncIterable<CompletionResponse, any, any>>

定义于:.build/typescript/packages/core/src/llms/type.ts:52

从LLM获取提示补全

LLMCompletionParamsStreaming

Promise<AsyncIterable<CompletionResponse, any, any>>

complete(params): Promise<CompletionResponse>

定义于:.build/typescript/packages/core/src/llms/type.ts:55

LLMCompletionParamsNonStreaming

Promise<CompletionResponse>