This repository was archived by the owner on Jun 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Pass through reasoning input flag and output chunks #1096
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Contributor
Author
|
I should note that I didn't find it easy to trigger the reasoning output with Cline lately. I remember seeing it with vanilla openrouter (not through codegate), but I have not during this testing. I see the chunks during curl testing and they seem the same as when directly going to openrouter. Maybe it's just the queries I've been sending to Cline? |
blkt
approved these changes
Feb 19, 2025
blkt
pushed a commit
that referenced
this pull request
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 pull request
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 pull request
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 pull request
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 pull request
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 pull request
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 pull request
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 pull request
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
Fixes: #977