Tip: If you are using Deepseek R1 through OpenRouter and cannot see it "thinking", do this:
Install this function:
https://openwebui.com/f/roneru/openrouter_reasoning_tokens_pipe
Click on the settings gear icon next to it click custom on each parameter and add the deepseek api link and your api token:
Openrouter Api Base Url=https://openrouter.ai/api/v1 (The v1 part is important, keep that)
Openrouter Api Key=Your API Key
It will add three models to your models list and you can change that in the function code:
def pipes(self):
models = [
"deepseek/deepseek-r1:free",
"deepseek/deepseek-r1-distill-llama-70b",
"deepseek/deepseek-r1",
]
The new models will begin with: openrouter_reasoning_tokens_pipe.reasoning
Configure models in the models list as you would normally:
https://i.imgur.com/jyjiC2W.jpeg
Here's the GitHub for it and I wish I could thank the person who created this directly: https://github.com/rmarfil3/openwebui-openrouter-reasoning-tokens
Posted Feb 6, 2025, 11:33 AM UTC