-
Notifications
You must be signed in to change notification settings - Fork 69
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
CodeGate doesn't include reasoning for OpenRouter thinking models #977
Labels
Comments
Looks like we need to make sure that the |
so on our side, the fix is simple, but won't work until BerriAI/litellm#8193 is fixed. |
parking |
jhrozek
added a commit
that referenced
this issue
Feb 19, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 19, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 19, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 19, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 20, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 21, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 21, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 21, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Feb 25, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
blkt
pushed a commit
that referenced
this issue
Mar 2, 2025
Some OpenRouter models allow to include the reasoning output if told to do so with a special input flag. This seems to be specific to OpenRouter. A simple test is: ``` curl http://localhost:8989/openrouter/completions \ -H "Authorization: Bearer $OPENROUTER_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "deepseek/deepseek-r1", "messages": [ {"role": "user", "content": "What is heavier, a kilogram of iron or a kilogram of feathers?"} ], "include_reasoning": true, "stream": true }' ``` Fixes: #977
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's possible to follow the reasoning of the thinking models like DeepSeek through OpenRouter, see https://openrouter.ai/announcements/reasoning-tokens-for-thinking-models
However, that doesn't work through codegate it seems.
The text was updated successfully, but these errors were encountered: