mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
- 在 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>