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

🏄‍♂️ refactor: Optimize Reasoning UI & Token Streaming #5546

Merged
merged 23 commits into from
Jan 30, 2025

Conversation

danny-avila
Copy link
Owner

@danny-avila danny-avila commented Jan 29, 2025

Summary

  • Fixed a rendering issue with long generations (10k+ chars), typical of deepseek-reasoner that would slow down the entire app. after a certain length.
  • Optimized tokens in transit, introducing data improvements similar to Agents.
    • Besides Agents, only applies to azure, openai, and custom endpoints
  • Removed message caching unless requested by Audio Request
  • Updated label text to show “Thinking...” during message submission
  • Provided a “Show Thinking” option in settings for controlling the default state
  • Added a toggle to display or hide reasoning content by default

Other Changes

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes

berry-13 and others added 23 commits January 27, 2025 20:41
@danny-avila danny-avila merged commit 591a019 into main Jan 30, 2025
4 checks passed
@danny-avila danny-avila deleted the refactor/optimize-thinking branch January 30, 2025 00:46
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.

2 participants