-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix deepseek cache official api #1427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deepseek cache official api #1427
Conversation
…d usage metrics - Add support for prompt caching in DeepSeek models - Update model configurations to reflect caching capabilities - Implement detailed usage metrics tracking cache write and read tokens - Extend test coverage for new usage metrics and model parameters - Update pricing information for DeepSeek models to include cache-related costs
…led usage metrics - Update DeepSeekHandler to support prompt caching - Add cache token tracking in usage metrics - Update DeepSeek model configurations with cache-related pricing - Enhance test coverage for cache and usage metric handling
…olweraltuve/Roo-Code into fix-deepseek-cache-official-api
|
|
Great, I think just one update needed to make the tests pass and we're good! |
- Update test case to reflect current object reference behavior for model info
|
I think everything looks good now. |
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixed deepseek cache count
Important
Enhances DeepSeek API to support prompt caching and updates model info and tests accordingly.
DeepSeekHandlerindeepseek.tsto support prompt caching by settingsupportsPromptCachetotrue.cacheWriteTokens,cacheReadTokens) toprocessUsageMetrics()indeepseek.ts.deepseek.test.tsto include tests for cache metrics increateMessage()andprocessUsageMetrics().getModel()returns correct model info with caching support.deepSeekModelsinapi.tsto reflect new cache pricing and support.This description was created by
for 566fa0f. It will automatically update as commits are pushed.