Skip to content

Commit 2459150

Browse files
committed
Finished
1 parent 3500836 commit 2459150

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

src/api/providers/pearai/pearaiGeneric.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
pearaiGeneric.ts is a copy of openai.ts, with minor changes to support the PearAI API. It currently is used for all hosted non-Anthropic models.
2+
pearaiGeneric.ts is the same as openai.ts, with changes to support the PearAI API. It currently is used for all hosted non-Anthropic models.
33
*/
44

55
import { Anthropic } from "@anthropic-ai/sdk"
@@ -70,9 +70,6 @@ export class PearAIGenericHandler extends BaseProvider implements SingleCompleti
7070
const modelUrl = this.options.openAiBaseUrl ?? ""
7171
const modelId = this.options.openAiModelId ?? ""
7272

73-
console.dir("MODEL INFO")
74-
console.dir(modelInfo)
75-
console.dir(modelId)
7673
const deepseekReasoner = modelId.includes("deepseek-reasoner")
7774
const ark = modelUrl.includes(".volces.com")
7875

@@ -213,11 +210,6 @@ export class PearAIGenericHandler extends BaseProvider implements SingleCompleti
213210
const totalCost = modelInfo
214211
? calculateApiCostOpenAI(modelInfo, inputTokens, outputTokens, cacheWriteTokens, cacheReadTokens)
215212
: 0
216-
217-
console.dir("COST")
218-
console.log(totalCost)
219-
console.dir("MODEL")
220-
console.dir(modelInfo)
221213
return {
222214
type: "usage",
223215
inputTokens: inputTokens,
@@ -230,9 +222,6 @@ export class PearAIGenericHandler extends BaseProvider implements SingleCompleti
230222

231223
override getModel(): { id: string; info: ModelInfo } {
232224
const modelId = this.options.openAiModelId ?? "none"
233-
console.log("MODEL INFO IN GETMODEL", allModels[modelId])
234-
console.log("Available models:", Object.keys(allModels))
235-
console.log("Keys: ", Object.keys(allModels[modelId]))
236225
return {
237226
id: modelId,
238227
info: allModels[modelId],

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,6 @@ export function normalizeApiConfiguration(
16911691
case "pearai": {
16921692
// Always use the models from the hook which are fetched when provider is selected
16931693
let query = pearAiModelsQuery
1694-
console.log("query", query)
16951694
return getProviderData(pearAiModelsQuery || {}, pearAiDefaultModelId)
16961695
}
16971696
default:

0 commit comments

Comments
 (0)