Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/quality/model-lifecycle.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"claude-3-7-sonnet-20250219",
"google/gemini-2.0-flash",
"gpt-4-0125-preview",
"gpt-5.2-codex",
"openai/gpt-5.2-codex"
],
"allowedRetiredInCatalog_note": "TODO(#11503): ratchet to burn down. Each id is retired by its vendor but still routable from the provider catalog. Removing a catalog row or adding a BUILT_IN_ALIASES forward is a maintainer call (some aggregators still serve these ids), so they are allowlisted here rather than silently dropped. Delete an entry as soon as it is forwarded or removed; never add one without a tracking issue.",
Expand Down
5 changes: 3 additions & 2 deletions open-sse/executors/uc/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* fake socket (same pattern as muse-spark-web).
*/
import WebSocket from "ws";
import { sanitizeErrorMessage } from "../../utils/error.ts";

import { UC_ORIGIN, UC_WS_HOST, UC_WS_TIMEOUT_MS } from "./constants.ts";
import { buildPersonaFrame, type UcHistoryEntry } from "./protocol.ts";
Expand Down Expand Up @@ -82,7 +83,7 @@ export function runUcTurn(input: UcTurnInput): Promise<UcTurnResult> {
resolve({
content: "",
reasoning: "",
error: `ws connect failed: ${err instanceof Error ? err.message : String(err)}`,
error: `ws connect failed: ${sanitizeErrorMessage(err instanceof Error ? err.message : String(err))}`,
});
return;
}
Expand Down Expand Up @@ -126,7 +127,7 @@ export function runUcTurn(input: UcTurnInput): Promise<UcTurnResult> {
});
ws.send(JSON.stringify(frame));
} catch (err) {
fail(`ws send failed: ${err instanceof Error ? err.message : String(err)}`);
fail(`ws send failed: ${sanitizeErrorMessage(err instanceof Error ? err.message : String(err))}`);
}
};

Expand Down
5 changes: 3 additions & 2 deletions open-sse/handlers/uc/ucTts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* path is unit-testable with no live network.
*/
import { randomUUID } from "node:crypto";
import { sanitizeErrorMessage } from "../../utils/error.ts";
import { Buffer } from "node:buffer";

import WebSocket from "ws";
Expand Down Expand Up @@ -151,7 +152,7 @@ export function runUcTtsSocket(input: UcTtsSocketInput): Promise<UcTtsSocketResu
} catch (err) {
resolve({
audio: Buffer.alloc(0) as Buffer<ArrayBuffer>,
error: `ws connect failed: ${err instanceof Error ? err.message : String(err)}`,
error: `ws connect failed: ${sanitizeErrorMessage(err instanceof Error ? err.message : String(err))}`,
});
return;
}
Expand Down Expand Up @@ -194,7 +195,7 @@ export function runUcTtsSocket(input: UcTtsSocketInput): Promise<UcTtsSocketResu
});
ws.send(JSON.stringify(frame));
} catch (err) {
fail(`ws send failed: ${err instanceof Error ? err.message : String(err)}`);
fail(`ws send failed: ${sanitizeErrorMessage(err instanceof Error ? err.message : String(err))}`);
}
};

Expand Down
Loading