Class OpenAiChatCompletionOutput
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiCompletionOutput
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiChatCompletionOutput
- All Implemented Interfaces:
DeltaAggregatable<OpenAiChatCompletionDelta>
@Deprecated
public class OpenAiChatCompletionOutput
extends OpenAiCompletionOutput
implements DeltaAggregatable<OpenAiChatCompletionDelta>
Deprecated.
OpenAI chat completion output.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add a streamed delta to the total output.protected booleanDeprecated.booleanDeprecated.Deprecated.List of result candidates.Deprecated.Get the message content from the output.Deprecated.Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.inthashCode()Deprecated.toString()Deprecated.Methods inherited from class com.sap.ai.sdk.foundationmodels.openai.model.OpenAiCompletionOutput
getCreated, getId, getModel, getObject, getPromptFilterResults, getUsage
-
Constructor Details
-
OpenAiChatCompletionOutput
public OpenAiChatCompletionOutput()Deprecated.
-
-
Method Details
-
getContent
Deprecated.Get the message content from the output.Note: If there are multiple choices only the first one is returned
- Returns:
- the message content or empty string.
- Throws:
OpenAiClientException- if the content filter filtered the output.
-
addDelta
Deprecated.Description copied from interface:DeltaAggregatableAdd a streamed delta to the total output.- Specified by:
addDeltain interfaceDeltaAggregatable<OpenAiChatCompletionDelta>- Parameters:
delta- the delta to add.
-
equals
Deprecated.- Overrides:
equalsin classOpenAiCompletionOutput
-
canEqual
Deprecated.- Overrides:
canEqualin classOpenAiCompletionOutput
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classOpenAiCompletionOutput
-
toString
Deprecated.- Overrides:
toStringin classOpenAiCompletionOutput
-
getChoices
Deprecated.List of result candidates. -
getSystemFingerprint
Deprecated.Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
-