Class OpenAiChatCompletionDelta
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiCompletionOutput
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiChatCompletionDelta
- All Implemented Interfaces:
StreamedDelta
@Deprecated
public class OpenAiChatCompletionDelta
extends OpenAiCompletionOutput
implements StreamedDelta
Deprecated.
OpenAI chat completion output delta for streaming.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.Deprecated.List of result candidates.Deprecated.Get the message content from the delta.Deprecated.Reason for finish.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
-
OpenAiChatCompletionDelta
public OpenAiChatCompletionDelta()Deprecated.
-
-
Method Details
-
getDeltaContent
Deprecated.Description copied from interface:StreamedDeltaGet the message content from the delta.Note: If there are multiple choices only the first one is returned
Note: Some deltas do not contain any content
- Specified by:
getDeltaContentin interfaceStreamedDelta- Returns:
- the message content or empty string.
-
getFinishReason
Deprecated.Description copied from interface:StreamedDeltaReason for finish. The possible values are:stop: API returned complete message, or a message terminated by one of the stop sequences provided via the stop parameterlength: Incomplete model output due to max_tokens parameter or token limitfunction_call: The model decided to call a functioncontent_filter: Omitted content due to a flag from our content filtersnull: API response still in progress or incomplete- Specified by:
getFinishReasonin interfaceStreamedDelta- Returns:
- the finish reason or null.
-
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.
-