public class OpenAILlm extends BaseLlm<OpenAILlmConfig>
| 限定符和类型 | 字段和说明 |
|---|---|
AiMessageParser |
aiMessageParser |
private HttpClient |
httpClient |
AiMessageParser |
streamMessageParser |
| 构造器和说明 |
|---|
OpenAILlm(OpenAILlmConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
AiMessageResponse |
chat(Prompt prompt,
ChatOptions options) |
void |
chatStream(Prompt prompt,
StreamResponseListener listener,
ChatOptions options) |
VectorData |
embed(Document document,
EmbeddingOptions options) |
static OpenAILlm |
of(String apiKey) |
static OpenAILlm |
of(String apiKey,
String endpoint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchat, chat, chat, chatStream, chatStream, chatStreamdimensions, embedprivate final HttpClient httpClient
public AiMessageParser aiMessageParser
public AiMessageParser streamMessageParser
public OpenAILlm(OpenAILlmConfig config)
public AiMessageResponse chat(Prompt prompt, ChatOptions options)
public void chatStream(Prompt prompt, StreamResponseListener listener, ChatOptions options)
public VectorData embed(Document document, EmbeddingOptions options)
Copyright © 2025. All rights reserved.