public class ChatCompletionRequest extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ChatCompletionRequest.Builder |
static class |
ChatCompletionRequest.ChatCompletionRequestFunctionCall |
static class |
ChatCompletionRequest.ChatCompletionRequestStreamOptions |
| 构造器和说明 |
|---|
ChatCompletionRequest() |
public String getModel()
public void setModel(String model)
public List<ChatMessage> getMessages()
public void setMessages(List<ChatMessage> messages)
public Double getTemperature()
public void setTemperature(Double temperature)
public Double getTopP()
public void setTopP(Double topP)
public Boolean getStream()
public void setStream(Boolean stream)
public ChatCompletionRequest.ChatCompletionRequestStreamOptions getStreamOptions()
public void setStreamOptions(ChatCompletionRequest.ChatCompletionRequestStreamOptions streamOptions)
public Integer getMaxTokens()
public void setMaxTokens(Integer maxTokens)
public Double getPresencePenalty()
public void setPresencePenalty(Double presencePenalty)
public Double getFrequencyPenalty()
public void setFrequencyPenalty(Double frequencyPenalty)
public String getUser()
public void setUser(String user)
public List<ChatFunction> getFunctions()
public void setFunctions(List<ChatFunction> functions)
public ChatCompletionRequest.ChatCompletionRequestFunctionCall getFunctionCall()
public void setFunctionCall(ChatCompletionRequest.ChatCompletionRequestFunctionCall functionCall)
public Boolean getLogprobs()
public void setLogprobs(Boolean logprobs)
public Integer getTopLogprobs()
public void setTopLogprobs(Integer topLogprobs)
public static ChatCompletionRequest.Builder builder()
Copyright © 2024. All rights reserved.