@@ -69,6 +69,7 @@ type GlobalStateKey =
6969 | "taskHistory"
7070 | "openAiBaseUrl"
7171 | "openAiModelId"
72+ | "openAiCustomModelInfo"
7273 | "ollamaModelId"
7374 | "ollamaBaseUrl"
7475 | "lmStudioModelId"
@@ -1208,6 +1209,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
12081209 openAiBaseUrl,
12091210 openAiApiKey,
12101211 openAiModelId,
1212+ openAiCustomModelInfo,
12111213 ollamaModelId,
12121214 ollamaBaseUrl,
12131215 lmStudioModelId,
@@ -1241,6 +1243,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
12411243 await this . updateGlobalState ( "openAiBaseUrl" , openAiBaseUrl )
12421244 await this . storeSecret ( "openAiApiKey" , openAiApiKey )
12431245 await this . updateGlobalState ( "openAiModelId" , openAiModelId )
1246+ await this . updateGlobalState ( "openAiCustomModelInfo" , openAiCustomModelInfo )
12441247 await this . updateGlobalState ( "ollamaModelId" , ollamaModelId )
12451248 await this . updateGlobalState ( "ollamaBaseUrl" , ollamaBaseUrl )
12461249 await this . updateGlobalState ( "lmStudioModelId" , lmStudioModelId )
@@ -1857,6 +1860,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
18571860 openAiBaseUrl ,
18581861 openAiApiKey ,
18591862 openAiModelId ,
1863+ openAiCustomModelInfo ,
18601864 ollamaModelId ,
18611865 ollamaBaseUrl ,
18621866 lmStudioModelId ,
@@ -1920,6 +1924,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
19201924 this . getGlobalState ( "openAiBaseUrl" ) as Promise < string | undefined > ,
19211925 this . getSecret ( "openAiApiKey" ) as Promise < string | undefined > ,
19221926 this . getGlobalState ( "openAiModelId" ) as Promise < string | undefined > ,
1927+ this . getGlobalState ( "openAiCustomModelInfo" ) as Promise < ModelInfo | undefined > ,
19231928 this . getGlobalState ( "ollamaModelId" ) as Promise < string | undefined > ,
19241929 this . getGlobalState ( "ollamaBaseUrl" ) as Promise < string | undefined > ,
19251930 this . getGlobalState ( "lmStudioModelId" ) as Promise < string | undefined > ,
@@ -2000,6 +2005,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
20002005 openAiBaseUrl,
20012006 openAiApiKey,
20022007 openAiModelId,
2008+ openAiCustomModelInfo,
20032009 ollamaModelId,
20042010 ollamaBaseUrl,
20052011 lmStudioModelId,
0 commit comments