@@ -361,6 +361,7 @@ async function routeRequest(input: {
361361 modelName : resolveSelectedModel ( settings ) ,
362362 codexReasoningEffort : settings . codexReasoningEffort ,
363363 cloudApiKey : settings . cloudApiKey ,
364+ claudeBaseUrl : settings . claudeBaseUrl ,
364365 promptTemplate : input . promptTemplateState . value ,
365366 question : session . question ,
366367 clientSource : source ,
@@ -408,6 +409,7 @@ async function routeRequest(input: {
408409 localVisionModel ?: string ;
409410 cloudModel ?: string ;
410411 cloudApiKey ?: string ;
412+ claudeBaseUrl ?: string ;
411413 } > ( input . request ) ;
412414
413415 const settings = await input . settingsStore . saveSettings ( {
@@ -416,7 +418,8 @@ async function routeRequest(input: {
416418 codexReasoningEffort : body . codexReasoningEffort ,
417419 localVisionModel : body . localVisionModel ,
418420 cloudModel : body . cloudModel ,
419- cloudApiKey : body . cloudApiKey
421+ cloudApiKey : body . cloudApiKey ,
422+ claudeBaseUrl : body . claudeBaseUrl
420423 } ) ;
421424 sendJson ( input . response , 200 , settings ) ;
422425 return ;
@@ -719,6 +722,7 @@ async function routeRequest(input: {
719722 modelName : selectedModel ,
720723 codexReasoningEffort : settings . codexReasoningEffort ,
721724 cloudApiKey : settings . cloudApiKey ,
725+ claudeBaseUrl : settings . claudeBaseUrl ,
722726 spawnProcess : input . spawnProcess ,
723727 onProgress : undefined
724728 } ) ;
@@ -807,6 +811,7 @@ async function processAnalysisSession(input: {
807811 modelName : string ;
808812 codexReasoningEffort : "low" | "medium" | "high" ;
809813 cloudApiKey : string ;
814+ claudeBaseUrl : string ;
810815 promptTemplate : string ;
811816 question : string ;
812817 clientSource : ClientSource ;
@@ -878,6 +883,7 @@ async function processAnalysisSession(input: {
878883 modelName : input . modelName ,
879884 codexReasoningEffort : input . codexReasoningEffort ,
880885 cloudApiKey : input . cloudApiKey ,
886+ claudeBaseUrl : input . claudeBaseUrl ,
881887 spawnProcess : input . spawnProcess ,
882888 onProgress : async ( message ) => {
883889 await transitionSession ( input . store , input . activityStore , input . hub , input . clientSource , input . sessionId , "analyzing" , message ) ;
@@ -999,12 +1005,17 @@ async function runConfiguredAnalysis(input: {
9991005 modelName : string ;
10001006 codexReasoningEffort : "low" | "medium" | "high" ;
10011007 cloudApiKey : string ;
1008+ claudeBaseUrl : string ;
10021009 spawnProcess ?: SpawnProcess ;
10031010 onProgress ?: ( message : string ) => void | Promise < void > ;
10041011} ) {
10051012 if ( input . modelProvider === "claude" ) {
10061013 return await runClaudeVisionAnalysis ( {
1007- config : input . config ,
1014+ config : {
1015+ schemaPath : input . config . schemaPath ,
1016+ codexTimeoutMs : input . config . codexTimeoutMs ,
1017+ claudeBaseUrl : input . claudeBaseUrl || input . config . claudeBaseUrl
1018+ } ,
10081019 apiKey : input . cloudApiKey ,
10091020 imagePath : input . imagePath ,
10101021 question : input . question ,
0 commit comments