UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

37 lines (33 loc) 854 B
import { ModelProviderKey } from '@/libs/model-runtime'; import { AiFullModelCard } from '@/types/aiModel'; import { ChatModelCard } from '@/types/llm'; export interface ProviderConfig { /** * whether to auto fetch model lists */ autoFetchModelLists?: boolean; /** * user defined model cards */ customModelCards?: ChatModelCard[]; enabled: boolean; /** * enabled models id */ enabledModels?: string[] | null; /** * whether fetch on client */ fetchOnClient?: boolean; /** * the latest fetch model list time */ latestFetchTime?: number; /** * fetched models from provider side */ remoteModelCards?: ChatModelCard[]; serverModelLists?: AiFullModelCard[]; } export type GlobalLLMProviderKey = ModelProviderKey; export type UserModelProviderConfig = Record<ModelProviderKey, ProviderConfig>;