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

推荐订阅源

C
Check Point Blog
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
美团技术团队
雷峰网
雷峰网
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
罗磊的独立博客
MyScale Blog
MyScale Blog
博客园_首页
IT之家
IT之家
F
Fortinet All Blogs
博客园 - Franky

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
docs(models): clarify local chat completions routing · op...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -425,20 +425,24 @@ describe("openai transport stream", () => {

425425

});

426426427427

it("streams OpenAI-compatible loopback requests with the configured SDK timeout", async () => {

428-

let captured: { path?: string; timeout?: string; roles?: string[] } = {};

428+

let captured: { path?: string; timeout?: string; model?: string; roles?: string[] } = {};

429429

const server = createServer((req, res) => {

430430

let body = "";

431431

req.setEncoding("utf8");

432432

req.on("data", (chunk) => {

433433

body += chunk;

434434

});

435435

req.on("end", () => {

436-

const parsed = JSON.parse(body) as { messages?: Array<{ role?: string }> };

436+

const parsed = JSON.parse(body) as {

437+

model?: string;

438+

messages?: Array<{ role?: string }>;

439+

};

437440

captured = {

438441

path: req.url,

439442

timeout: Array.isArray(req.headers["x-stainless-timeout"])

440443

? req.headers["x-stainless-timeout"][0]

441444

: req.headers["x-stainless-timeout"],

445+

model: parsed.model,

442446

roles: parsed.messages?.map((message) => message.role ?? ""),

443447

};

444448

res.writeHead(200, {

@@ -452,7 +456,7 @@ describe("openai transport stream", () => {

452456

id: "chatcmpl-timeout-proof",

453457

object: "chat.completion.chunk",

454458

created,

455-

model: "slow-local",

459+

model: "mlx-community/Qwen3-30B-A3B-6bit",

456460

choices: [

457461

{

458462

index: 0,

@@ -467,7 +471,7 @@ describe("openai transport stream", () => {

467471

id: "chatcmpl-timeout-proof",

468472

object: "chat.completion.chunk",

469473

created,

470-

model: "slow-local",

474+

model: "mlx-community/Qwen3-30B-A3B-6bit",

471475

choices: [{ index: 0, delta: {}, finish_reason: "stop" }],

472476

usage: { prompt_tokens: 1, completion_tokens: 1, total_tokens: 2 },

473477

})}\n\n`,

@@ -484,10 +488,10 @@ describe("openai transport stream", () => {

484488

throw new Error("Missing loopback server address");

485489

}

486490

const baseModel = {

487-

id: "slow-local",

488-

name: "Slow Local",

491+

id: "mlx-community/Qwen3-30B-A3B-6bit",

492+

name: "Qwen3 MLX",

489493

api: "openai-completions",

490-

provider: "custom-openai-compatible",

494+

provider: "mlx",

491495

baseUrl: `http://127.0.0.1:${address.port}/v1`,

492496

reasoning: false,

493497

input: ["text"],

@@ -524,6 +528,7 @@ describe("openai transport stream", () => {

524528525529

expect(captured.path).toBe("/v1/chat/completions");

526530

expect(captured.timeout).toBe("900");

531+

expect(captured.model).toBe("mlx-community/Qwen3-30B-A3B-6bit");

527532

expect(captured.roles).toEqual(["system", "user"]);

528533

expect(doneReason).toBe("stop");

529534

expect(text).toBe("OK");