Commit e3aaf32
committed
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 <[email protected]>1 parent b8dfc09 commit e3aaf32
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 | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
0 commit comments