Class CreateChatCompletionResponseChoicesInnerLogprobs
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.CreateChatCompletionResponseChoicesInnerLogprobs
Log probability information for the choice.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContentItem(ChatCompletionTokenLogprob contentItem) Add one content instance to thisCreateChatCompletionResponseChoicesInnerLogprobs.addRefusalItem(ChatCompletionTokenLogprob refusalItem) Add one refusal instance to thisCreateChatCompletionResponseChoicesInnerLogprobs.content(List<ChatCompletionTokenLogprob> content) Set the content of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance and return the same instance.booleanA list of message content tokens with log probability information.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theCreateChatCompletionResponseChoicesInnerLogprobs.A list of message refusal tokens with log probability information.inthashCode()refusal(List<ChatCompletionTokenLogprob> refusal) Set the refusal of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance and return the same instance.voidsetContent(List<ChatCompletionTokenLogprob> content) Set the content of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.voidsetRefusal(List<ChatCompletionTokenLogprob> refusal) Set the refusal of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.toMap()Get the value of all properties of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance including unrecognized properties.toString()
-
Constructor Details
-
CreateChatCompletionResponseChoicesInnerLogprobs
public CreateChatCompletionResponseChoicesInnerLogprobs()
-
-
Method Details
-
content
@Nonnull public CreateChatCompletionResponseChoicesInnerLogprobs content(@Nullable List<ChatCompletionTokenLogprob> content) Set the content of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance and return the same instance.- Parameters:
content- A list of message content tokens with log probability information.- Returns:
- The same instance of this
CreateChatCompletionResponseChoicesInnerLogprobsclass
-
addContentItem
@Nonnull public CreateChatCompletionResponseChoicesInnerLogprobs addContentItem(@Nonnull ChatCompletionTokenLogprob contentItem) Add one content instance to thisCreateChatCompletionResponseChoicesInnerLogprobs.- Parameters:
contentItem- The content that should be added- Returns:
- The same instance of type
CreateChatCompletionResponseChoicesInnerLogprobs
-
getContent
A list of message content tokens with log probability information.- Returns:
- content The content of this
CreateChatCompletionResponseChoicesInnerLogprobsinstance.
-
setContent
Set the content of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.- Parameters:
content- A list of message content tokens with log probability information.
-
refusal
@Nonnull public CreateChatCompletionResponseChoicesInnerLogprobs refusal(@Nullable List<ChatCompletionTokenLogprob> refusal) Set the refusal of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance and return the same instance.- Parameters:
refusal- A list of message refusal tokens with log probability information.- Returns:
- The same instance of this
CreateChatCompletionResponseChoicesInnerLogprobsclass
-
addRefusalItem
@Nonnull public CreateChatCompletionResponseChoicesInnerLogprobs addRefusalItem(@Nonnull ChatCompletionTokenLogprob refusalItem) Add one refusal instance to thisCreateChatCompletionResponseChoicesInnerLogprobs.- Parameters:
refusalItem- The refusal that should be added- Returns:
- The same instance of type
CreateChatCompletionResponseChoicesInnerLogprobs
-
getRefusal
A list of message refusal tokens with log probability information.- Returns:
- refusal The refusal of this
CreateChatCompletionResponseChoicesInnerLogprobsinstance.
-
setRefusal
Set the refusal of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.- Parameters:
refusal- A list of message refusal tokens with log probability information.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theCreateChatCompletionResponseChoicesInnerLogprobs.- 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 thisCreateChatCompletionResponseChoicesInnerLogprobsinstance.- 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 thisCreateChatCompletionResponseChoicesInnerLogprobsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisCreateChatCompletionResponseChoicesInnerLogprobsinstance. 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.