Commit Graph

6 Commits

Author SHA1 Message Date
suyao
b3c7a1db91
Merge remote-tracking branch 'origin/main' into feat/proxy-api-server 2025-12-11 12:29:01 +08:00
suyao
0e6830b1bf
Merge remote-tracking branch 'origin/main' into feat/proxy-api-server 2025-12-04 21:39:17 +08:00
suyao
2ba6c1101d
Merge branch 'main' into feat/proxy-api-server 2025-12-02 19:59:32 +08:00
suyao
3989229f61
feat: enhance API version handling and cache functionality
- Updated reasoning cache to use tool-specific keys for better organization.
- Added methods to list cache keys and entries.
- Improved API version regex patterns for more accurate matching.
- Refactored API host formatting to handle leading/trailing whitespace and slashes.
- Added functions to extract and remove trailing API version segments from URLs.
2025-11-30 07:10:10 +08:00
suyao
ccfb9423e0
chore: format 2025-11-27 19:31:59 +08:00
suyao
a5e7aa1342
feat: Implement shared provider utilities and API host formatting
- Added provider API host formatting utilities to handle differences between Cherry Studio and AI SDK.
- Introduced functions for formatting provider API hosts, including support for Azure OpenAI and Vertex AI.
- Created a simple API key rotator for managing API key rotation.
- Developed shared provider initialization and mapping utilities for resolving provider IDs.
- Implemented AI SDK configuration utilities for converting Cherry Studio providers to AI SDK configurations.
- Added support for various providers including OpenRouter, Google Vertex AI, and Amazon Bedrock.
- Enhanced error handling and logging in the unified messages service for better debugging.
- Introduced functions for streaming and generating unified messages using AI SDK.
2025-11-27 15:30:19 +08:00