This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit 4e6a204
committed
Pass through reasoning input flag and output chunks
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: #9771 parent cf9090d commit 4e6a204
File tree
2 files changed
+2
-0
lines changed- src/codegate/types/openai
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments