File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ) ) {
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments