Uses of Record Class
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionMessage
Packages that use OpenAiApi.ChatCompletionMessage
-
Uses of OpenAiApi.ChatCompletionMessage in org.springframework.ai.openai.api
Methods in org.springframework.ai.openai.api that return OpenAiApi.ChatCompletionMessageModifier and TypeMethodDescriptionOpenAiApi.ChatCompletionChunk.ChunkChoice.delta()Returns the value of thedeltarecord component.OpenAiApi.ChatCompletion.Choice.message()Returns the value of themessagerecord component.Methods in org.springframework.ai.openai.api that return types with arguments of type OpenAiApi.ChatCompletionMessageModifier and TypeMethodDescriptionOpenAiApi.ChatCompletionRequest.messages()Returns the value of themessagesrecord component.Constructors in org.springframework.ai.openai.api with parameters of type OpenAiApi.ChatCompletionMessageModifierConstructorDescriptionChoice(OpenAiApi.ChatCompletionFinishReason finishReason, Integer index, OpenAiApi.ChatCompletionMessage message, OpenAiApi.LogProbs logprobs) Creates an instance of aChoicerecord class.ChunkChoice(OpenAiApi.ChatCompletionFinishReason finishReason, Integer index, OpenAiApi.ChatCompletionMessage delta, OpenAiApi.LogProbs logprobs) Creates an instance of aChunkChoicerecord class.Constructor parameters in org.springframework.ai.openai.api with type arguments of type OpenAiApi.ChatCompletionMessageModifierConstructorDescriptionChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, Boolean stream) Shortcut constructor for a chat completion request with the given messages for streaming.ChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, String model, Boolean store, Map<String, String> metadata, Double frequencyPenalty, Map<String, Integer> logitBias, Boolean logprobs, Integer topLogprobs, Integer maxTokens, Integer maxCompletionTokens, Integer n, List<OpenAiApi.OutputModality> outputModalities, OpenAiApi.ChatCompletionRequest.AudioParameters audioParameters, Double presencePenalty, ResponseFormat responseFormat, Integer seed, String serviceTier, List<String> stop, Boolean stream, OpenAiApi.ChatCompletionRequest.StreamOptions streamOptions, Double temperature, Double topP, List<OpenAiApi.FunctionTool> tools, Object toolChoice, Boolean parallelToolCalls, String user, String reasoningEffort, OpenAiApi.ChatCompletionRequest.WebSearchOptions webSearchOptions, String verbosity) Creates an instance of aChatCompletionRequestrecord class.ChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, String model, Double temperature) Shortcut constructor for a chat completion request with the given messages, model and temperature.ChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, String model, Double temperature, boolean stream) Shortcut constructor for a chat completion request with the given messages, model, temperature and control for streaming.ChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, String model, List<OpenAiApi.FunctionTool> tools, Object toolChoice) Shortcut constructor for a chat completion request with the given messages, model, tools and tool choice.ChatCompletionRequest(List<OpenAiApi.ChatCompletionMessage> messages, String model, OpenAiApi.ChatCompletionRequest.AudioParameters audio, boolean stream) Shortcut constructor for a chat completion request with text and audio output.