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.

38 lines (32 loc) 860 B
import { ChatModelCard } from '@/types/llm'; import { V3LLMConfig, V3Settings } from './v3'; export interface V4ProviderConfig { apiKey?: string; customModelCards?: ChatModelCard[]; enabled?: boolean; /** * enabled models id */ enabledModels?: string[] | null; endpoint?: string; } export interface V4AzureOpenAIConfig extends V4ProviderConfig { apiVersion?: string; } export interface V4lLLMConfig extends Omit<Partial<V3LLMConfig>, 'ollama' | 'openAI' | 'openrouter' | 'togetherai'> { azure?: V4AzureOpenAIConfig; ollama?: V4ProviderConfig; openai: V4ProviderConfig; openrouter?: V4ProviderConfig; togetherai?: V4ProviderConfig; } /** * 配置设置 */ export interface V4Settings extends Omit<V3Settings, 'languageModel'> { languageModel?: V4lLLMConfig; } export interface V4ConfigState { settings?: V4Settings; }