Skip to content

Commit b08b9e8

Browse files
ilayaperumalgmarkpollack
authored andcommitted
Support store and metadata OpenAI chat options
- Add store and metadata as OpenAI Chat options - Add test - Add docs Resolves #2103
1 parent fe323fb commit b08b9e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/openai-chat.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ The prefix `spring.ai.openai.chat` is the property prefix that lets you configur
107107
| 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. | -
108108
| 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. | -
109109
| 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
110+
| spring.ai.openai.chat.options.store | Whether to store the output of this chat completion request for use in our model | false
111+
| spring.ai.openai.chat.options.metadata | Developer-defined tags and values used for filtering completions in the chat completion dashboard | empty map
110112
| 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.
111113
The `gpt-4o-audio-preview` model can also be used to generate audio. To request that this model generate both text and audio responses,
112114
you can use: `text`, `audio`. Not supported for streaming. | -

0 commit comments

Comments
 (0)