fix: do not print ai sdk warnings (#4541)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tommy D. Rossi 2025-11-20 15:42:24 +01:00 committed by GitHub
parent bd91cf220c
commit b12efb2023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,9 @@ import { SessionSummary } from "@/session/summary"
import { GlobalBus } from "@/bus/global"
import { SessionStatus } from "@/session/status"
// @ts-ignore This global is needed to prevent ai-sdk from logging warnings to stdout https://github.com/vercel/ai/blob/2dc67e0ef538307f21368db32d5a12345d98831b/packages/ai/src/logger/log-warnings.ts#L85
globalThis.AI_SDK_LOG_WARNINGS = false
const ERRORS = {
400: {
description: "Bad request",