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{
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