Skip to content

Commit af25430

Browse files
committed
Update OpenAI chat UML diagram
1 parent 2da161c commit af25430

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api/OpenAiApi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,8 @@ public record Usage(// @formatter:off
922922
* the model runs with. Can be used in conjunction with the seed request parameter to
923923
* understand when backend changes have been made that might impact determinism.
924924
* @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.
925927
*/
926928
@JsonInclude(Include.NON_NULL)
927929
public record ChatCompletionChunk(// @formatter:off
Loading

0 commit comments

Comments
 (0)