We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da161c commit af25430Copy full SHA for af25430
models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java
@@ -922,6 +922,8 @@ public record Usage(// @formatter:off
922
* the model runs with. Can be used in conjunction with the seed request parameter to
923
* understand when backend changes have been made that might impact determinism.
924
* @param object The object type, which is always 'chat.completion.chunk'.
925
+ * @param usage Usage statistics for the completion request. Present in the last chunk
926
+ * only if the StreamOptions.includeUsage is set to true.
927
*/
928
@JsonInclude(Include.NON_NULL)
929
public record ChatCompletionChunk(// @formatter:off
spring-ai-docs/src/main/antora/modules/ROOT/images/openai-chat-api.jpg
691 KB
0 commit comments