mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:34:02 +00:00
优化内容: - 删除 claudeRelayService.js 中的重复模型限制检查(82行代码) - 保留 api.js 中的统一检查,覆盖所有服务类型(claude/console/ccr) - 移除 /v1/messages/count_tokens 端点的模型限制(计数接口不需要限制) 架构改进: - 模型限制逻辑现在集中在 api.js 的 handleMessagesRequest 函数中 - 避免了每个服务各自实现一遍的重复代码 - 提高了代码的可维护性和一致性 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>