feat(openAiProvider): load models from config as well

This commit is contained in:
ItzCrazyKns
2025-10-14 13:05:19 +05:30
parent 87226957f1
commit a375de73cc
2 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
import { Model } from '../models/types';
type BaseUIConfigField = {
name: string;
key: string;
@@ -40,8 +42,8 @@ type ConfigModelProvider = {
id: string;
name: string;
type: string;
chatModels: string[];
embeddingModels: string[];
chatModels: Model[];
embeddingModels: Model[];
config: { [key: string]: any };
hash: string;
};