@dreb/coding-agent 2.57.0 → 2.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/custom-provider.md +17 -2
- package/docs/models.md +1 -1
- package/package.json +1 -1
package/docs/custom-provider.md
CHANGED
|
@@ -188,7 +188,22 @@ models: [{
|
|
|
188
188
|
}]
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
-
Use `qwen-chat-template` instead for local Qwen-compatible servers that read `chat_template_kwargs.enable_thinking`.
|
|
191
|
+
Use `qwen-chat-template` instead for local Qwen-compatible servers that read `chat_template_kwargs.enable_thinking`. When reasoning is enabled, dreb sends the mapped effort as a top-level `reasoning_effort`; Qwen3.8+ models (which natively support exactly `low`/`medium`/`xhigh`, default `xhigh`) get this map by default:
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
models: [{
|
|
195
|
+
id: "qwen3.8-27b",
|
|
196
|
+
// ...
|
|
197
|
+
compat: {
|
|
198
|
+
thinkingFormat: "qwen-chat-template"
|
|
199
|
+
// The Qwen3.8+ default map below is applied automatically; supply your own
|
|
200
|
+
// reasoningEffortMap to override it:
|
|
201
|
+
// reasoningEffortMap: { minimal: "low", low: "low", medium: "medium", high: "xhigh", xhigh: "xhigh" }
|
|
202
|
+
}
|
|
203
|
+
}]
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Older Qwen models and non-Qwen servers keep identity forwarding, so configure `reasoningEffortMap` yourself if your server's effort vocabulary differs.
|
|
192
207
|
|
|
193
208
|
> Migration note: Mistral moved from `openai-completions` to `mistral-conversations`.
|
|
194
209
|
> Use `mistral-conversations` for native Mistral models.
|
|
@@ -630,4 +645,4 @@ interface ProviderModelConfig {
|
|
|
630
645
|
}
|
|
631
646
|
```
|
|
632
647
|
|
|
633
|
-
`qwen` is for DashScope-style top-level `enable_thinking`. Use `qwen-chat-template` for local Qwen-compatible servers that read `chat_template_kwargs.enable_thinking
|
|
648
|
+
`qwen` is for DashScope-style top-level `enable_thinking`. Use `qwen-chat-template` for local Qwen-compatible servers that read `chat_template_kwargs.enable_thinking`; effort is sent as a top-level `reasoning_effort`, and Qwen3.8+ models get a default map onto the native `low`/`medium`/`xhigh` tiers (see the example above).
|
package/docs/models.md
CHANGED
|
@@ -320,7 +320,7 @@ For providers with partial OpenAI compatibility, use the `compat` field.
|
|
|
320
320
|
| `openRouterRouting` | OpenRouter routing config passed to OpenRouter for model/provider selection |
|
|
321
321
|
| `vercelGatewayRouting` | Vercel AI Gateway routing config for provider selection (`only`, `order`) |
|
|
322
322
|
|
|
323
|
-
`qwen` uses top-level `enable_thinking`. Use `qwen-chat-template` for local Qwen-compatible servers that require `chat_template_kwargs.enable_thinking`.
|
|
323
|
+
`qwen` uses top-level `enable_thinking`. Use `qwen-chat-template` for local Qwen-compatible servers that require `chat_template_kwargs.enable_thinking`. When reasoning is enabled, dreb sends the mapped effort as a top-level `reasoning_effort`; Qwen3.8+ models default-map dreb's levels onto the three native tiers (`minimal`/`low` → `low`, `medium` → `medium`, `high`/`xhigh` → `xhigh`).
|
|
324
324
|
|
|
325
325
|
Example:
|
|
326
326
|
|