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

export const EmbeddingModels = ({ config }: EmbeddingModelsProps) => {
  if (!config) return null;

  return (
    <ModelList
      type="embedding"
      models={EMBEDDING_MODELS}
      config={config}
      enabledModels={config.enabled_embedding_models || []}
      defaultModel={config.default_embedding_model}
      title="Embedding Models"
      description="Enable or disable available embedding models"
    />
  );
}