chore: resolve conflict

This commit is contained in:
Fred Liang
2023-12-24 02:15:30 +08:00
parent 75acd4c1aa
commit 778e88cb56
16 changed files with 630 additions and 74 deletions

View File

@@ -4,10 +4,7 @@ export function collectModelTable(
models: readonly LLMModel[],
customModels: string,
) {
const modelTable: Record<
string,
{ available: boolean; name: string; displayName: string }
> = {};
const modelTable: { [key: string]: LLMModel } = {};
// default models
models.forEach(
@@ -37,6 +34,7 @@ export function collectModelTable(
name,
displayName: displayName || name,
available,
provider: modelTable[name].provider,
};
});
return modelTable;