mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Remove logging
This commit is contained in:
parent
7f1c6d7079
commit
28e18a6192
1 changed files with 0 additions and 5 deletions
|
|
@ -128,15 +128,11 @@ export class OpenRouterHandler implements ApiHandler, SingleCompletionHandler {
|
|||
...(this.options.openRouterUseMiddleOutTransform && { transforms: ["middle-out"] }),
|
||||
}
|
||||
|
||||
console.log("OpenRouter completionParams:", completionParams)
|
||||
|
||||
const stream = await this.client.chat.completions.create(completionParams)
|
||||
|
||||
let genId: string | undefined
|
||||
|
||||
for await (const chunk of stream as unknown as AsyncIterable<OpenAI.Chat.Completions.ChatCompletionChunk>) {
|
||||
console.log("OpenRouter chunk:", chunk)
|
||||
|
||||
// OpenRouter returns an error object instead of the OpenAI SDK throwing an error.
|
||||
if ("error" in chunk) {
|
||||
const error = chunk.error as { message?: string; code?: number }
|
||||
|
|
@ -189,7 +185,6 @@ export class OpenRouterHandler implements ApiHandler, SingleCompletionHandler {
|
|||
})
|
||||
|
||||
const generation = response.data?.data
|
||||
console.log("OpenRouter generation details:", response.data)
|
||||
|
||||
yield {
|
||||
type: "usage",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue