Skip to content

Commit 05d1772

Browse files
committed
Revert
1 parent 5b796ad commit 05d1772

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/api/providers/pearai/pearai.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
6464

6565
if (modelId.startsWith("pearai")) {
6666
try {
67-
// TODO: For some reason, if we move this fetch to above this if statement, it breaks everything)
6867
const response = await fetch(`${PEARAI_URL}/getPearAIAgentModels`)
6968
if (!response.ok) {
7069
throw new Error(`Failed to fetch models: ${response.statusText}`)
@@ -118,7 +117,6 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
118117
}
119118

120119
getModel(): { id: string; info: ModelInfo } {
121-
// TODO: this.pearAiModelsResponse is always undefined so we curretly have to just use client side model info
122120
if (this.options.apiModelId) {
123121
let modelInfo = null
124122
if (this.options.apiModelId.startsWith("pearai")) {

src/api/providers/pearai/pearaiGeneric.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ export class PearAIGenericHandler extends BaseProvider implements SingleCompleti
3838
constructor(options: OpenAiHandlerOptions) {
3939
super()
4040
this.options = options
41-
console.dir("Model ID")
42-
console.dir(this.options.openAiModelId)
4341

4442
const baseURL = this.options.openAiBaseUrl ?? "https://api.openai.com/v1"
4543
const apiKey = this.options.openAiApiKey ?? "not-provided"

0 commit comments

Comments
 (0)