public class ChatRequestDefault extends java.lang.Object implements ChatRequest
构造器和说明 |
---|
ChatRequestDefault(ChatConfig config,
ChatDialect dialect,
java.util.List<ChatMessage> messages) |
限定符和类型 | 方法和说明 |
---|---|
ChatResponse |
call()
调用
|
ChatRequest |
options(ChatOptions options)
选项设置
|
ChatRequest |
options(java.util.function.Consumer<ChatOptions> optionsBuilder)
选项配置
|
org.reactivestreams.Publisher<ChatResponse> |
stream()
流响应
|
public ChatRequestDefault(ChatConfig config, ChatDialect dialect, java.util.List<ChatMessage> messages)
public ChatRequest options(ChatOptions options)
options
在接口中 ChatRequest
options
- 选项public ChatRequest options(java.util.function.Consumer<ChatOptions> optionsBuilder)
options
在接口中 ChatRequest
optionsBuilder
- 选项构建器public ChatResponse call() throws java.io.IOException
call
在接口中 ChatRequest
java.io.IOException
public org.reactivestreams.Publisher<ChatResponse> stream()
stream
在接口中 ChatRequest