mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
# v0.5.35 (2026-07-16)
## Features - **xAI**: Grok Imagine video generation (`/v1/videos`) + CLI - **CLI tools**: Grok Build setup — writes `[model.9router]` to `~/.grok/config.toml` - **GitHub Copilot**: route Claude models through Copilot's native `/v1/messages` - **Kiro**: add GPT-5.6 model family (#2596) - **RTK**: `X-9Router-Token-Saver` header to bypass token savers per request - **Providers**: quota visibility settings - **Translator**: drop temperature for all Claude models - **i18n**: Thai (th) + Persian (fa) translations / README ## Fixes - **Providers**: bulk-add API keys no longer overwrite existing keys (gap-fill `Key N`) - **Anthropic**: lowercase `anthropic-version` header to prevent duplication on `/v1/messages` - **Alicode-intl**: use DashScope compatible-mode endpoint so standard keys work - **Grok CLI**: align Grok Build with current subscription protocol (#2590) - **Grok CLI**: surface `expiresAt` so proactive token refresh fires (#2546) - **Kiro**: improve direct session cache reuse - **Models**: populate capabilities for live-catalog LLM models - **Models**: list compatible provider models in `/v1/models` - **Thinking**: send explicit `thinking:{type:adaptive}` alongside `output_config.effort` - **Translator**: strip `client_metadata` when converting openai-responses → openai ## Improvements - **Perf**: skip inactive background services on startup
This commit is contained in:
@@ -210,6 +210,9 @@ export async function handleChatCore({ body, modelInfo, credentials, log, onCred
|
||||
}
|
||||
} else if (tokenSaverEnabled && headroomEnabled) log?.warn?.("HEADROOM", `skipped: ${headroomDiagnostics.reason || "compression unavailable"}${headroomDiagnostics.endpoint ? ` (${headroomDiagnostics.endpoint})` : ""}`);
|
||||
|
||||
// Token-saver flags accumulator for the single "⚙" log line below.
|
||||
const xf = [];
|
||||
|
||||
// Caveman: inject terse-style system prompt
|
||||
if (tokenSaverEnabled && cavemanEnabled && cavemanLevel) {
|
||||
injectCaveman(translatedBody, finalFormat, cavemanLevel);
|
||||
|
||||
Reference in New Issue
Block a user