Elffuss BraidHub

kikocis/continue public

add underlyingProviderName to JSONModelDescription and ModelDescription
Changeset26b11692f31aa27f8cb7242e4d72268a0651f87e91f6312ddb99b290a4aecc18
AuthorNate <sestinj@gmail.com> · 2025-05-20 15:18 -07:00
CommitterNate <sestinj@gmail.com> · 2025-05-20 15:18 -07:00
Parentsa0bd4c9cc1eb

Browse the files at this changeset

2 files changed

modified core/config/load.ts +2 −2
@@ -620,6 +620,7 @@
620620 function llmToSerializedModelDescription(llm: ILLM): ModelDescription {
621621 return {
622622 provider: llm.providerName,
623+ underlyingProviderName: llm.underlyingProviderName,
623624 model: llm.model,
624625 title: llm.title ?? llm.model,
625626 apiKey: llm.apiKey,
@@ -970,6 +971,5 @@
970971 finalToBrowserConfig,
971972 intermediateToFinalConfig,
972973 loadContinueConfigFromJson,
973- type BrowserSerializedContinueConfig
974+ type BrowserSerializedContinueConfig,
974975 };
975-
modified core/index.d.ts +2 −0
@@ -1036,6 +1036,7 @@
10361036 export interface ModelDescription {
10371037 title: string;
10381038 provider: string;
1039+ underlyingProviderName: string;
10391040 model: string;
10401041 apiKey?: string;
10411042
@@ -1329,6 +1330,7 @@
13291330 export interface JSONModelDescription {
13301331 title: string;
13311332 provider: string;
1333+ underlyingProviderName: string;
13321334 model: string;
13331335 apiKey?: string;
13341336 apiBase?: string;