Class CreateChatCompletionStreamResponseChoicesInner
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.CreateChatCompletionStreamResponseChoicesInner
CreateChatCompletionStreamResponseChoicesInner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe reason the model stopped generating tokens. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the delta of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.booleanSet the finishReason of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCreateChatCompletionStreamResponseChoicesInner.getDelta()Get deltaThe reason the model stopped generating tokens.getIndex()The index of the choice in the list of choices.Get logprobsinthashCode()Set the index of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.Set the logprobs of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCreateChatCompletionStreamResponseChoicesInnerinstance.voidSet the delta of thisCreateChatCompletionStreamResponseChoicesInnerinstance.voidSet the finishReason of thisCreateChatCompletionStreamResponseChoicesInnerinstance.voidSet the index of thisCreateChatCompletionStreamResponseChoicesInnerinstance.voidSet the logprobs of thisCreateChatCompletionStreamResponseChoicesInnerinstance.toMap()Get the value of all properties of thisCreateChatCompletionStreamResponseChoicesInnerinstance including unrecognized properties.toString()
-
Constructor Details
-
CreateChatCompletionStreamResponseChoicesInner
public CreateChatCompletionStreamResponseChoicesInner()
-
-
Method Details
-
delta
@Nonnull public CreateChatCompletionStreamResponseChoicesInner delta(@Nonnull ChatCompletionStreamResponseDelta delta) Set the delta of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.- Parameters:
delta- The delta of thisCreateChatCompletionStreamResponseChoicesInner- Returns:
- The same instance of this
CreateChatCompletionStreamResponseChoicesInnerclass
-
getDelta
Get delta- Returns:
- delta The delta of this
CreateChatCompletionStreamResponseChoicesInnerinstance.
-
setDelta
Set the delta of thisCreateChatCompletionStreamResponseChoicesInnerinstance.- Parameters:
delta- The delta of thisCreateChatCompletionStreamResponseChoicesInner
-
logprobs
@Nonnull public CreateChatCompletionStreamResponseChoicesInner logprobs(@Nullable CreateChatCompletionResponseChoicesInnerLogprobs logprobs) Set the logprobs of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.- Parameters:
logprobs- The logprobs of thisCreateChatCompletionStreamResponseChoicesInner- Returns:
- The same instance of this
CreateChatCompletionStreamResponseChoicesInnerclass
-
getLogprobs
Get logprobs- Returns:
- logprobs The logprobs of this
CreateChatCompletionStreamResponseChoicesInnerinstance.
-
setLogprobs
Set the logprobs of thisCreateChatCompletionStreamResponseChoicesInnerinstance.- Parameters:
logprobs- The logprobs of thisCreateChatCompletionStreamResponseChoicesInner
-
finishReason
@Nonnull public CreateChatCompletionStreamResponseChoicesInner finishReason(@Nullable CreateChatCompletionStreamResponseChoicesInner.FinishReasonEnum finishReason) Set the finishReason of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.- Parameters:
finishReason- The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, `content_filter` if content was omitted due to a flag from our content filters, `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.- Returns:
- The same instance of this
CreateChatCompletionStreamResponseChoicesInnerclass
-
getFinishReason
The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, `content_filter` if content was omitted due to a flag from our content filters, `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.- Returns:
- finishReason The finishReason of this
CreateChatCompletionStreamResponseChoicesInnerinstance.
-
setFinishReason
public void setFinishReason(@Nullable CreateChatCompletionStreamResponseChoicesInner.FinishReasonEnum finishReason) Set the finishReason of thisCreateChatCompletionStreamResponseChoicesInnerinstance.- Parameters:
finishReason- The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, `content_filter` if content was omitted due to a flag from our content filters, `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
-
index
Set the index of thisCreateChatCompletionStreamResponseChoicesInnerinstance and return the same instance.- Parameters:
index- The index of the choice in the list of choices.- Returns:
- The same instance of this
CreateChatCompletionStreamResponseChoicesInnerclass
-
getIndex
The index of the choice in the list of choices.- Returns:
- index The index of this
CreateChatCompletionStreamResponseChoicesInnerinstance.
-
setIndex
Set the index of thisCreateChatCompletionStreamResponseChoicesInnerinstance.- Parameters:
index- The index of the choice in the list of choices.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCreateChatCompletionStreamResponseChoicesInner.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisCreateChatCompletionStreamResponseChoicesInnerinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisCreateChatCompletionStreamResponseChoicesInnerinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCreateChatCompletionStreamResponseChoicesInnerinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
toMap()instead.