Skip to content

Conversation

@olweraltuve
Copy link
Contributor

@olweraltuve olweraltuve commented Mar 6, 2025

Fixed deepseek cache count


Important

Enhances DeepSeek API to support prompt caching and updates model info and tests accordingly.

  • Behavior:
    • Updates DeepSeekHandler in deepseek.ts to support prompt caching by setting supportsPromptCache to true.
    • Adds cache metrics (cacheWriteTokens, cacheReadTokens) to processUsageMetrics() in deepseek.ts.
  • Tests:
    • Updates deepseek.test.ts to include tests for cache metrics in createMessage() and processUsageMetrics().
    • Ensures getModel() returns correct model info with caching support.
  • Models:
    • Updates deepSeekModels in api.ts to reflect new cache pricing and support.

This description was created by Ellipsis for 566fa0f. It will automatically update as commits are pushed.

…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
@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2025

⚠️ No Changeset found

Latest commit: 21101e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. bug Something isn't working labels Mar 6, 2025
@hannesrudolph hannesrudolph moved this from New to PR [Unverified] in Roo Code Roadmap Mar 6, 2025
@mrubens
Copy link
Collaborator

mrubens commented Mar 6, 2025

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
@olweraltuve
Copy link
Contributor Author

I think everything looks good now.

Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 6, 2025
@mrubens mrubens merged commit d9e0310 into RooCodeInc:main Mar 6, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from PR [Unverified] to Done in Roo Code Roadmap Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants