Package com.openai.models
Class ChatCompletionChunk.Choice.Delta.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionChunk.Choice.Delta.Builder
-
-
Constructor Summary
Constructors Constructor Description ChatCompletionChunk.Choice.Delta.Builder()
-
Method Summary
-
-
Method Detail
-
content
final ChatCompletionChunk.Choice.Delta.Builder content(String content)
The contents of the chunk message.
-
content
final ChatCompletionChunk.Choice.Delta.Builder content(Optional<String> content)
The contents of the chunk message.
-
content
final ChatCompletionChunk.Choice.Delta.Builder content(JsonField<String> content)
The contents of the chunk message.
-
functionCall
@Deprecated(message = "deprecated") final ChatCompletionChunk.Choice.Delta.Builder functionCall(ChatCompletionChunk.Choice.Delta.FunctionCall functionCall)
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
functionCall
@Deprecated(message = "deprecated") final ChatCompletionChunk.Choice.Delta.Builder functionCall(JsonField<ChatCompletionChunk.Choice.Delta.FunctionCall> functionCall)
Deprecated and replaced by
tool_calls
. The name and arguments of a function that should be called, as generated by the model.
-
refusal
final ChatCompletionChunk.Choice.Delta.Builder refusal(String refusal)
The refusal message generated by the model.
-
refusal
final ChatCompletionChunk.Choice.Delta.Builder refusal(Optional<String> refusal)
The refusal message generated by the model.
-
refusal
final ChatCompletionChunk.Choice.Delta.Builder refusal(JsonField<String> refusal)
The refusal message generated by the model.
-
role
final ChatCompletionChunk.Choice.Delta.Builder role(ChatCompletionChunk.Choice.Delta.Role role)
The role of the author of this message.
-
role
final ChatCompletionChunk.Choice.Delta.Builder role(JsonField<ChatCompletionChunk.Choice.Delta.Role> role)
The role of the author of this message.
-
toolCalls
final ChatCompletionChunk.Choice.Delta.Builder toolCalls(List<ChatCompletionChunk.Choice.Delta.ToolCall> toolCalls)
-
toolCalls
final ChatCompletionChunk.Choice.Delta.Builder toolCalls(JsonField<List<ChatCompletionChunk.Choice.Delta.ToolCall>> toolCalls)
-
addToolCall
final ChatCompletionChunk.Choice.Delta.Builder addToolCall(ChatCompletionChunk.Choice.Delta.ToolCall toolCall)
-
additionalProperties
final ChatCompletionChunk.Choice.Delta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionChunk.Choice.Delta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionChunk.Choice.Delta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionChunk.Choice.Delta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionChunk.Choice.Delta.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionChunk.Choice.Delta build()
-
-
-
-