Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented May 22, 2025

…virtual thinking models support. Made with Claude Code.


Important

Enhances OpenRouter model handling by adding virtual thinking variants for Claude Sonnet 4 and Opus 4, updating model fetching, parsing, and API interaction logic.

  • Behavior:
    • Adds virtual :thinking variants for anthropic/claude-sonnet-4 and anthropic/claude-opus-4 in getOpenRouterModels() in openrouter.ts.
    • Updates parseOpenRouterModel() to handle :thinking variants for Sonnet 4 and Opus 4.
    • Modifies createMessage() and completePrompt() in OpenRouterHandler to use base model ID for virtual :thinking models.
  • Model Handling:
    • Updates useOpenRouterModelProviders.ts to support :thinking variants, adjusting maxTokens and pricing logic.
    • Adjusts getOpenRouterProvidersForModel() to handle new model variants and pricing.
  • Misc:
    • Changes thinking logic to check for id.endsWith(":thinking") in multiple functions.

This description was created by Ellipsis for 8675206. You can customize this summary. It will automatically update as commits are pushed.

@hannesrudolph hannesrudolph changed the title Enhance OpenRouter model handling for Claude 4 and Opus 4, including … Enhance OpenRouter model handling for Sonnet 4 and Opus 4, including … May 22, 2025
@hannesrudolph hannesrudolph marked this pull request as ready for review May 22, 2025 20:51
@hannesrudolph hannesrudolph requested review from cte and mrubens as code owners May 22, 2025 20:51
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 23, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 23, 2025
SmartManoj pushed a commit to SmartManoj/Raa-Code that referenced this pull request Jun 13, 2025
* pass type of webview to webview

* changeset

---------

Co-authored-by: Elephant Lumps <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants