Fix modellist

This commit is contained in:
Kwaroran
2024-11-27 10:33:05 +09:00
parent 171db25f55
commit 3a54add582

View File

@@ -979,14 +979,9 @@ for(let model of LLMModels){
export function getModelInfo(id: string): LLMModel{ export function getModelInfo(id: string): LLMModel{
const found:LLMModel = LLMModels.find(model => model.id === id) ?? { const found:LLMModel = LLMModels.find(model => model.id === id)
id,
name: id, console.log('found', found)
provider: LLMProvider.AsIs,
format: LLMFormat.OpenAICompatible,
flags: [],
parameters: OpenAIParameters
}
if(found) return found if(found) return found