@dreb/coding-agent 2.43.0 → 2.43.2
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 +1 -1
- package/docs/models.md +1 -1
- package/docs/providers.md +4 -2
- package/package.json +1 -1
package/docs/custom-provider.md
CHANGED
|
@@ -608,7 +608,7 @@ interface ProviderModelConfig {
|
|
|
608
608
|
requiresToolResultName?: boolean;
|
|
609
609
|
requiresAssistantAfterToolResult?: boolean;
|
|
610
610
|
requiresThinkingAsText?: boolean;
|
|
611
|
-
thinkingFormat?: "openai" | "openrouter" | "zai" | "qwen" | "qwen-chat-template";
|
|
611
|
+
thinkingFormat?: "openai" | "openrouter" | "zai" | "qwen" | "qwen-chat-template" | "kimi";
|
|
612
612
|
openRouterRouting?: OpenRouterRouting;
|
|
613
613
|
vercelGatewayRouting?: VercelGatewayRouting;
|
|
614
614
|
supportsStrictMode?: boolean;
|
package/docs/models.md
CHANGED
|
@@ -270,7 +270,7 @@ For providers with partial OpenAI compatibility, use the `compat` field.
|
|
|
270
270
|
| `requiresToolResultName` | Include `name` on tool result messages |
|
|
271
271
|
| `requiresAssistantAfterToolResult` | Insert an assistant message before a user message after tool results |
|
|
272
272
|
| `requiresThinkingAsText` | Convert thinking blocks to plain text |
|
|
273
|
-
| `thinkingFormat` | Use `reasoning_effort`, `zai`, `qwen`,
|
|
273
|
+
| `thinkingFormat` | Use `reasoning_effort`, `reasoning: { effort }`, `zai`, `qwen`, `qwen-chat-template`, or nested `thinking: { type, effort? }` parameters |
|
|
274
274
|
| `supportsStrictMode` | Include the `strict` field in tool definitions |
|
|
275
275
|
| `openRouterRouting` | OpenRouter routing config passed to OpenRouter for model/provider selection |
|
|
276
276
|
| `vercelGatewayRouting` | Vercel AI Gateway routing config for provider selection (`only`, `order`) |
|
package/docs/providers.md
CHANGED
|
@@ -51,8 +51,10 @@ Use `/logout` to clear credentials. Tokens are stored in `~/.dreb/agent/auth.jso
|
|
|
51
51
|
|
|
52
52
|
- `/login` uses the Kimi Code OAuth subscription endpoint at `https://api.kimi.com/coding/v1`.
|
|
53
53
|
- `KIMI_API_KEY` uses Kimi For Coding's Anthropic-compatible API at `https://api.kimi.com/coding`.
|
|
54
|
-
-
|
|
55
|
-
-
|
|
54
|
+
- Built-in OAuth models are `kimi-for-coding` (default, 262k context), `k3` (1M context), and `kimi-for-coding-highspeed` (262k context). Model availability is plan-dependent: the `k3` 1M-context ID and the `kimi-for-coding-highspeed` ID are only exposed when the subscription includes them, and `kimi-for-coding-highspeed` runs at roughly 6× speed for 3× quota usage. On login/refresh, dreb asks the Kimi API which models the subscription is entitled to and updates context, reasoning, image, tool-use, protocol, and thinking-effort metadata. Compatible newly discovered IDs are templated conservatively; if discovery fails, the static list remains available.
|
|
55
|
+
- OAuth requests use the current Kimi Code device identity contract and share its stable `~/.kimi-code/device_id`. Extra low-precedence headers can be supplied with newline-separated `KIMI_CODE_CUSTOM_HEADERS` values.
|
|
56
|
+
- The OAuth coding endpoint accepts OpenAI-style multimodal content arrays with base64 `image_url` data URLs. dreb keeps a conservative 32k output-token cap because the managed model catalog does not currently advertise a per-model output limit.
|
|
57
|
+
- Moonshot Open Platform uses a different base URL (`https://api.moonshot.ai/v1`); don't assume both routes expose identical behavior.
|
|
56
58
|
|
|
57
59
|
## API Keys
|
|
58
60
|
|