@@ -36,12 +36,19 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
3636 throw new Error ( "PearAI API key not found. Please login to PearAI." )
3737 }
3838
39+ if ( ! options . creatorMode ) {
40+ // TODO: REMOVE, TESTING
41+ options . creatorMode = true
42+ // options.creatorMode = false
43+ }
44+
3945 // Initialize with a default handler synchronously
4046 this . handler = new AnthropicHandler ( {
4147 ...options ,
4248 apiKey : options . pearaiApiKey ,
4349 anthropicBaseUrl : PEARAI_URL ,
4450 apiModelId : "claude-3-5-sonnet-20241022" ,
51+ creatorMode : options . creatorMode ,
4552 } )
4653
4754 // Then try to initialize the correct handler asynchronously
@@ -68,6 +75,7 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
6875 deepSeekApiKey : options . pearaiApiKey ,
6976 deepSeekBaseUrl : PEARAI_URL ,
7077 apiModelId : underlyingModel ,
78+ creatorMode : options . creatorMode ,
7179 } )
7280 } else {
7381 // Default to Claude
@@ -76,6 +84,7 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
7684 apiKey : options . pearaiApiKey ,
7785 anthropicBaseUrl : PEARAI_URL ,
7886 apiModelId : underlyingModel ,
87+ creatorMode : options . creatorMode ,
7988 } )
8089 }
8190 } catch ( error ) {
@@ -86,6 +95,7 @@ export class PearAiHandler extends BaseProvider implements SingleCompletionHandl
8695 apiKey : options . pearaiApiKey ,
8796 anthropicBaseUrl : PEARAI_URL ,
8897 apiModelId : "claude-3-5-sonnet-20241022" ,
98+ creatorMode : options . creatorMode ,
8999 } )
90100 }
91101 } else if ( modelId . startsWith ( "claude" ) ) {
0 commit comments