From b08b9e8cf4cf8bd33994b7753b0c1eb4ee1bb8e0 Mon Sep 17 00:00:00 2001 From: Ilayaperumal Gopinathan Date: Tue, 28 Jan 2025 16:09:24 +0000 Subject: [PATCH] Support store and metadata OpenAI chat options - Add store and metadata as OpenAI Chat options - Add test - Add docs Resolves #2103 --- .../main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc index 262db5a46..2b5d1db24 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc @@ -107,6 +107,8 @@ The prefix `spring.ai.openai.chat` is the property prefix that lets you configur | spring.ai.openai.chat.options.maxTokens | (Deprecated in favour of `maxCompletionTokens`) The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length. | - | spring.ai.openai.chat.options.maxCompletionTokens | An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. | - | spring.ai.openai.chat.options.n | How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep `n` as 1 to minimize costs. | 1 +| spring.ai.openai.chat.options.store | Whether to store the output of this chat completion request for use in our model | false +| spring.ai.openai.chat.options.metadata | Developer-defined tags and values used for filtering completions in the chat completion dashboard | empty map | spring.ai.openai.chat.options.output-modalities | Output types that you would like the model to generate for this request. Most models are capable of generating text, which is the default. The `gpt-4o-audio-preview` model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: `text`, `audio`. Not supported for streaming. | -