Commit 62fc70f
Add User-Agent header with 'spring-ai' value to OpenAI API client
- Adds 'User-Agent: spring-ai' header to all OpenAI API requests
- Maintains consistency with Azure OpenAI implementation
- Header is set in the RestClient default headers configuration
- Helps OpenAI identify requests coming from Spring AI for analytics and support
Signed-off-by: Sandra Ahlgrimm <sandra.kriemann@gmail.com>1 parent 77473d6 commit 62fc70f
File tree
1 file changed
+1
-0
lines changed- models/spring-ai-openai/src/main/java/org/springframework/ai/openai/api
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
0 commit comments