Fix the default value of OpenAI chat option

- The OpenAI chat option metadata can be set only when the store value is enabled.
 - Change the default value from empty map to null
This commit is contained in:
Ilayaperumal Gopinathan
2025-01-28 19:35:57 +00:00
parent b08b9e8cf4
commit b03a6c9ef8

View File

@@ -181,7 +181,7 @@ public class OpenAiChatOptions implements FunctionCallingOptions {
/**
* Developer-defined tags and values used for filtering completions in the <a href="https://platform.openai.com/chat-completions">dashboard</a>.
*/
private @JsonProperty("metadata") Map<String, String> metadata = new HashMap<>();
private @JsonProperty("metadata") Map<String, String> metadata;
/**
* OpenAI Tool Function Callbacks to register with the ChatModel.
* For Prompt Options the functionCallbacks are automatically enabled for the duration of the prompt execution.