Class OpenAiCompletionParameters.OpenAiStreamOptions
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiCompletionParameters.OpenAiStreamOptions
- Enclosing class:
OpenAiCompletionParameters
"stream_options": { "include_usage": "true" }
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleaninthashCode()setInclude_usage(Boolean include_usage) If set, an additional chunk will be streamed before thedata: [DONE]message.toString()
-
Constructor Details
-
OpenAiStreamOptions
public OpenAiStreamOptions()
-
-
Method Details
-
setInclude_usage
If set, an additional chunk will be streamed before thedata: [DONE]message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include ausagefield, but with a null value.- Returns:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-