public class QwenChatModel extends Object implements ChatLanguageModel
| Modifier and Type | Class and Description |
|---|---|
static class |
QwenChatModel.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected Boolean |
enableSearch |
protected com.alibaba.dashscope.aigc.generation.Generation |
gen |
protected String |
modelName |
protected Integer |
seed |
protected Double |
topK |
protected Double |
topP |
| Modifier | Constructor and Description |
|---|---|
protected |
QwenChatModel(String apiKey,
String modelName,
Double topP,
Double topK,
Boolean enableSearch,
Integer seed) |
| Modifier and Type | Method and Description |
|---|---|
static QwenChatModel.Builder |
builder() |
protected String |
sendMessage(String prompt) |
AiMessage |
sendMessages(List<ChatMessage> messages) |
AiMessage |
sendMessages(List<ChatMessage> messages,
List<ToolSpecification> toolSpecifications) |
AiMessage |
sendMessages(List<ChatMessage> messages,
ToolSpecification toolSpecification) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendMessages, sendUserMessage, sendUserMessage, sendUserMessageprotected final com.alibaba.dashscope.aigc.generation.Generation gen
protected final String apiKey
protected final String modelName
protected final Double topP
protected final Double topK
protected final Boolean enableSearch
protected final Integer seed
public AiMessage sendMessages(List<ChatMessage> messages)
sendMessages in interface ChatLanguageModelpublic AiMessage sendMessages(List<ChatMessage> messages, List<ToolSpecification> toolSpecifications)
sendMessages in interface ChatLanguageModelpublic AiMessage sendMessages(List<ChatMessage> messages, ToolSpecification toolSpecification)
sendMessages in interface ChatLanguageModelpublic static QwenChatModel.Builder builder()
Copyright © 2023. All rights reserved.