[GH-ISSUE #3065] [FEAT]: include_reasoning for OpenRouter #1968

Closed
opened 2026-02-22 18:27:28 -05:00 by yindo · 2 comments
Owner

Originally created by @timothycarambat on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3065

Originally assigned to: @timothycarambat on GitHub.

What would you like to see?

https://openrouter.ai/announcements/reasoning-tokens-for-thinking-models

Concerns:

  • Streaming allowed?
  • Only via chat, not during agents to preserve token count/costs
  • Other side effects for non-reasoning models
Originally created by @timothycarambat on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3065 Originally assigned to: @timothycarambat on GitHub. ### What would you like to see? https://openrouter.ai/announcements/reasoning-tokens-for-thinking-models Concerns: - Streaming allowed? - Only via chat, not during agents to preserve token count/costs - Other side effects for non-reasoning models
yindo added the enhancementfeature request labels 2026-02-22 18:27:28 -05:00
yindo closed this issue 2026-02-22 18:27:28 -05:00
Author
Owner

@morbificagent commented on GitHub (Jan 30, 2025):

Was updating to the actual docker a few minutes ago because i wanted to test deepseek r1 via openrouter and was happy that anythingllm can now show the part ;-)

As it doesnt work with openrouter at the moment i would be very happy if this could be implemented.
Im not very good at coding but i will try it too...

@morbificagent commented on GitHub (Jan 30, 2025): Was updating to the actual docker a few minutes ago because i wanted to test deepseek r1 via openrouter and was happy that anythingllm can now show the <think> part ;-) As it doesnt work with openrouter at the moment i would be very happy if this could be implemented. Im not very good at coding but i will try it too...
Author
Owner

@morbificagent commented on GitHub (Jan 30, 2025):

OK, have changed the index.js to show the thinking for openrouter...
Its working for me.
Dont wonder as i have a providerselection in the file too as openrouter sometimes uses providers which are slow only because they are cheaper...

Would love to help more with pull requests or something like that but i dont know how to do this and eventually my changes arent that great ;-) But eventually it can help:

index.js.txt

@morbificagent commented on GitHub (Jan 30, 2025): OK, have changed the index.js to show the thinking for openrouter... Its working for me. Dont wonder as i have a providerselection in the file too as openrouter sometimes uses providers which are slow only because they are cheaper... Would love to help more with pull requests or something like that but i dont know how to do this and eventually my changes arent that great ;-) But eventually it can help: [index.js.txt](https://github.com/user-attachments/files/18609058/index.js.txt)
yindo changed title from [FEAT]: `include_reasoning` for OpenRouter to [GH-ISSUE #3065] [FEAT]: `include_reasoning` for OpenRouter 2026-06-05 14:43:44 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1968