Skip to content

Commit 96703dc

Browse files
authored
🤖 fix: disable AI SDK warning logging (#1237)
Disables AI SDK warning logging by setting `globalThis.AI_SDK_LOG_WARNINGS = false`. This suppresses noisy warnings like "setting `toolChoice` to `none` is not supported". --- _Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking: `high`_
1 parent b761b11 commit 96703dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/node/services/streamManager.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ import type { SessionUsageService } from "./sessionUsageService";
4242
import { createDisplayUsage } from "@/common/utils/tokens/displayUsage";
4343
import { normalizeGatewayModel } from "@/common/utils/ai/models";
4444

45+
// Disable AI SDK warning logging (e.g., "setting `toolChoice` to `none` is not supported")
46+
globalThis.AI_SDK_LOG_WARNINGS = false;
47+
4548
// Type definitions for stream parts with extended properties
4649
interface ReasoningDeltaPart {
4750
type: "reasoning-delta";

0 commit comments

Comments
 (0)