mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 00:53:33 +00:00
feat: enhance Claude Code client detection with similarity matching
- Add string-similarity library for robust prompt comparison - Extract Claude Code system prompts to separate contents module - Implement similarity-based validation with configurable thresholds - Support different validation logic for Haiku vs other Claude models - Fix validation to properly handle array format system prompts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
"ora": "^5.4.1",
|
||||
"rate-limiter-flexible": "^5.0.5",
|
||||
"socks-proxy-agent": "^8.0.2",
|
||||
"string-similarity": "^4.0.4",
|
||||
"table": "^6.8.1",
|
||||
"uuid": "^9.0.1",
|
||||
"winston": "^3.11.0",
|
||||
|
||||
Reference in New Issue
Block a user