From 3a54add582575e56aa2ec080966cba6464132671 Mon Sep 17 00:00:00 2001 From: Kwaroran Date: Wed, 27 Nov 2024 10:33:05 +0900 Subject: [PATCH] Fix modellist --- src/ts/model/modellist.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ts/model/modellist.ts b/src/ts/model/modellist.ts index 96dd5a58..5d94cc1a 100644 --- a/src/ts/model/modellist.ts +++ b/src/ts/model/modellist.ts @@ -979,14 +979,9 @@ for(let model of LLMModels){ export function getModelInfo(id: string): LLMModel{ - const found:LLMModel = LLMModels.find(model => model.id === id) ?? { - id, - name: id, - provider: LLMProvider.AsIs, - format: LLMFormat.OpenAICompatible, - flags: [], - parameters: OpenAIParameters - } + const found:LLMModel = LLMModels.find(model => model.id === id) + + console.log('found', found) if(found) return found