Skip to content
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 Pricing & Titling #5459

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

danny-avila
Copy link
Owner

Summary

I updated the request payload to include context for title generation and revised the Deepseek reasoner pricing to align with usage costs.

  • Added context: 'title' to the instructions payload in OpenAIClient.js to prevent reasoning tokens from appending to the final response
  • Conditioned the check for reasoning tokens so it skips when context is 'title'
  • Changed the completion rate for deepseek-reasoner from 0.55 to 2.19 to reflect current costs

Change Type

  • Bug fix (non-breaking change which fixes an issue)

Testing

I tested by generating titles and verifying that reasoning tokens were excluded. I also checked the updated Deepseek rates in my local environment to ensure the new pricing was applied correctly.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes

@danny-avila danny-avila merged commit 60c846b into main Jan 25, 2025
2 checks passed
@danny-avila danny-avila deleted the fix/deepseek-price-title branch January 25, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant