public class ChatCompletionRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatCompletionRequest.Builder |
static class |
ChatCompletionRequest.ChatCompletionRequestFunctionCall |
static class |
ChatCompletionRequest.ChatCompletionRequestResponseFormat |
static class |
ChatCompletionRequest.ChatCompletionRequestStreamOptions |
static class |
ChatCompletionRequest.ChatCompletionRequestThinking |
static class |
ChatCompletionRequest.ChatCompletionRequestToolChoice |
static class |
ChatCompletionRequest.ChatCompletionRequestToolChoiceFunction |
| Constructor and Description |
|---|
ChatCompletionRequest() |
public ChatCompletionRequest.ChatCompletionRequestThinking getThinking()
public void setThinking(ChatCompletionRequest.ChatCompletionRequestThinking thinking)
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 String getServiceTier()
public void setServiceTier(String serviceTier)
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 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 Double getRepetitionPenalty()
public void setRepetitionPenalty(Double repetitionPenalty)
public Integer getN()
public void setN(Integer n)
public Boolean getParallelToolCalls()
public void setParallelToolCalls(Boolean parallelToolCalls)
public Object getToolChoice()
public void setToolChoice(Object toolChoice)
public ChatCompletionRequest.ChatCompletionRequestResponseFormat getResponseFormat()
public void setResponseFormat(ChatCompletionRequest.ChatCompletionRequestResponseFormat responseFormat)
public static ChatCompletionRequest.Builder builder()
Copyright © 2025. All rights reserved.