Uses of Record Class
org.springframework.ai.openai.api.OpenAiApi.Usage
Packages that use OpenAiApi.Usage
-
Uses of OpenAiApi.Usage in org.springframework.ai.openai.api
Methods in org.springframework.ai.openai.api that return OpenAiApi.UsageModifier and TypeMethodDescriptionOpenAiApi.ChatCompletion.usage()Returns the value of theusagerecord component.OpenAiApi.ChatCompletionChunk.usage()Returns the value of theusagerecord component.OpenAiApi.EmbeddingList.usage()Returns the value of theusagerecord component.Constructors in org.springframework.ai.openai.api with parameters of type OpenAiApi.UsageModifierConstructorDescriptionChatCompletion(String id, List<OpenAiApi.ChatCompletion.Choice> choices, Long created, String model, String serviceTier, String systemFingerprint, String object, OpenAiApi.Usage usage) Creates an instance of aChatCompletionrecord class.ChatCompletionChunk(String id, List<OpenAiApi.ChatCompletionChunk.ChunkChoice> choices, Long created, String model, String serviceTier, String systemFingerprint, String object, OpenAiApi.Usage usage) Creates an instance of aChatCompletionChunkrecord class.EmbeddingList(String object, List<T> data, String model, OpenAiApi.Usage usage) Creates an instance of aEmbeddingListrecord class.