惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
A
About on SuperTechFans
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
B
Blog RSS Feed
G
Google Developers Blog
量子位
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(model): preserve LM Studio '@' quant suffixes in mode...
Bartok9 · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -80,6 +80,22 @@ describe("splitTrailingAuthProfile", () => {

8080

});

8181

});

8282
83+

it("keeps @iq* importance-quantization suffixes in model ids", () => {

84+

expect(splitTrailingAuthProfile("lmstudio/qwen3.6-27b@iq3_xxs")).toEqual({

85+

model: "lmstudio/qwen3.6-27b@iq3_xxs",

86+

});

87+

expect(splitTrailingAuthProfile("lmstudio/qwen3.6-27b@iq4_xs")).toEqual({

88+

model: "lmstudio/qwen3.6-27b@iq4_xs",

89+

});

90+

});

91+
92+

it("supports auth profiles after @iq* quant suffixes", () => {

93+

expect(splitTrailingAuthProfile("lmstudio/qwen3.6-27b@iq3_xxs@work")).toEqual({

94+

model: "lmstudio/qwen3.6-27b@iq3_xxs",

95+

profile: "work",

96+

});

97+

});

98+
8399

it("keeps @4bit/@8bit quant suffixes in model ids", () => {

84100

expect(splitTrailingAuthProfile("lmstudio-mb-pro/gemma-4-31b@4bit")).toEqual({

85101

model: "lmstudio-mb-pro/gemma-4-31b@4bit",

Original file line numberDiff line numberDiff line change

@@ -29,9 +29,12 @@ export function splitTrailingAuthProfile(raw: string): {

2929

// of the model id. These often use '@' (ex: gemma-4-31b-it@q8_0) which would

3030

// otherwise be misinterpreted as an auth profile delimiter.

3131

//

32+

// Covers standard GGUF quant tags (q4_0, q8_0, q4_k_xl, …) and importance-

33+

// quantization variants (iq3_xxs, iq4_xs, …) used by llama.cpp / LM Studio.

34+

//

3235

// If an auth profile is needed, it can still be specified as a second suffix:

33-

// lmstudio/foo@q8_0@work

34-

if (/^(?:q\d+(?:_[a-z0-9]+)*|\d+bit)(?:@|$)/i.test(suffixAfterDelimiter())) {

36+

// lmstudio/foo@q8_0@work lmstudio/foo@iq3_xxs@work

37+

if (/^(?:i?q\d+(?:_[a-z0-9]+)*|\d+bit)(?:@|$)/i.test(suffixAfterDelimiter())) {

3538

const nextDelimiter = trimmed.indexOf("@", profileDelimiter + 1);

3639

if (nextDelimiter < 0) {

3740

return { model: trimmed };

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,4 @@

1+

import { splitTrailingAuthProfile } from "../agents/model-ref-profile.js";

12

import { normalizeProviderId } from "../agents/provider-id.js";

23

import { withBundledPluginVitestCompat } from "./bundled-compat.js";

34

import { resolveEffectivePluginActivationState } from "./config-state.js";

@@ -353,9 +354,7 @@ function resolveManifestRegistry(params: {

353354

}

354355
355356

function stripModelProfileSuffix(value: string): string {

356-

const trimmed = value.trim();

357-

const at = trimmed.indexOf("@");

358-

return at <= 0 ? trimmed : trimmed.slice(0, at).trim();

357+

return splitTrailingAuthProfile(value).model;

359358

}

360359
361360

function splitExplicitModelRef(rawModel: string): { provider?: string; modelId: string } | null {