Files
proxycast/src-tauri
pengshiyuandClaude Opus 4.5 3a740969b9 feat: 添加 X-Provider-Id header 支持实现精确 Provider 路由
- 在 API 请求中添加 X-Provider-Id header 用于精确路由到指定 Provider
- 修复 Chat 专家模式使用 Deepseek 等自定义 Provider 时路由错误的问题
- 优化 toast 通知持续时间和去重机制
- 移除 App.tsx 中重复的 Toaster 组件

修改文件:
- api.rs: 解析 X-Provider-Id header 并支持 provider_id_hint 路由
- api_key_provider_service.rs: 添加 get_next_api_key_with_provider_info 方法
- protocols/mod.rs, openai.rs, anthropic.rs: Protocol trait 添加 provider_id 参数
- native_agent.rs, native_agent_cmd.rs: 传递 provider_id 到请求中
- useAgentChat.ts: 增加错误 toast 持续时间到 8 秒
- sonner.tsx: 默认 toast 持续时间从 3 秒增加到 5 秒

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 23:55:58 +08:00
..
2025-12-20 21:04:22 +07:00
2026-01-06 22:25:46 +08:00
2026-01-06 22:25:46 +08:00
2026-01-06 22:25:46 +08:00