mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 06:57:33 +08:00
fix: fix type errors
This commit is contained in:
@@ -4,7 +4,15 @@ export function collectModelTable(
|
||||
models: readonly LLMModel[],
|
||||
customModels: string,
|
||||
) {
|
||||
const modelTable: { [key: string]: LLMModel } = {};
|
||||
const modelTable: Record<
|
||||
string,
|
||||
{
|
||||
available: boolean;
|
||||
name: string;
|
||||
displayName: string;
|
||||
provider: LLMModel["provider"];
|
||||
}
|
||||
> = {};
|
||||
|
||||
// default models
|
||||
models.forEach(
|
||||
|
Reference in New Issue
Block a user