Skip to content

Commit bf0bace

Browse files
committed
fix(zai): remove debug console.log statements to prevent leaking sensitive data
1 parent 409fd92 commit bf0bace

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/api/providers/zai.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { convertToZAiFormat } from "../transform/zai-format"
1616

1717
import type { ApiHandlerCreateMessageMetadata } from "../index"
1818
import { BaseOpenAiCompatibleProvider } from "./base-openai-compatible-provider"
19-
import { DEFAULT_HEADERS } from "./constants"
2019

2120
// Custom interface for Z.ai params to support thinking mode
2221
type ZAiChatCompletionParams = OpenAI.Chat.ChatCompletionCreateParamsStreaming & {
@@ -109,12 +108,6 @@ export class ZAiHandler extends BaseOpenAiCompatibleProvider<string> {
109108
}),
110109
}
111110

112-
// DEBUG: Log raw API request for z.ai (temporary debug measure)
113-
console.log("[Z.ai DEBUG] Raw API Request:")
114-
console.log("[Z.ai DEBUG] Base URL:", this.baseURL)
115-
console.log("[Z.ai DEBUG] Headers:", DEFAULT_HEADERS)
116-
console.log("[Z.ai DEBUG] Request Params:", params)
117-
118111
return this.client.chat.completions.create(params)
119112
}
120113
}

0 commit comments

Comments
 (0)