File size: 523 Bytes
136f9cf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { CHAT_MODELS } from "@/lib/config/types";
import { ModelList } from "./ModelList";
import { ChatModelsProps } from "../types";

export const ChatModels = ({ config }: ChatModelsProps) => {
  if (!config) return null;
  
  return (
    <ModelList
      type="chat"
      models={CHAT_MODELS}
      config={config}
      enabledModels={config.enabled_chat_models || []}
      defaultModel={config.default_chat_model}
      title="Chat Models"
      description="Enable or disable available chat models"
    />
  );
}