Commit 4fd6502
feat: 为自定义Headers功能添加国际化支持 (#487)
* feat: 增加AI配置自定义请求头功能
- 在AiConfig接口中添加customHeaders字段
- 在createOpenAIClient中合并自定义headers到默认请求头
- 在AI配置页面为自定义配置添加Headers编辑功能
- 修复自定义headers保存逻辑,改为失焦时保存
- 优化代码结构,直接在defaultHeaders中合并自定义headers
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* feat: 增加AI配置自定义请求头功能
- 在AiConfig接口中添加customHeaders字段
- 在createOpenAIClient中合并自定义headers到默认请求头
- 在AI配置页面为自定义配置添加Headers编辑功能
- 修复自定义headers保存逻辑,改为失焦时保存
- 优化代码结构,直接在defaultHeaders中合并自定义headers
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* feat: 为自定义Headers功能添加国际化支持
- 添加中文、英文、日文翻译
- 更新AI配置页面使用国际化文本
---------
Co-authored-by: Zen <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent 7bf24ad commit 4fd6502
4 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
0 commit comments