@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.
33 lines (22 loc) • 662 B
text/typescript
/* eslint-disable sort-keys-fix/sort-keys-fix */
export const API_ENDPOINTS = {
oauth: '/api/auth',
proxy: '/webapi/proxy',
// plugins
gateway: '/webapi/plugin/gateway',
// trace
trace: '/webapi/trace',
// chat
chat: (provider: string) => `/webapi/chat/${provider}`,
// models
models: (provider: string) => `/webapi/models/${provider}`,
modelPull: (provider: string) => `/webapi/models/${provider}/pull`,
// image
images: (provider: string) => `/webapi/text-to-image/${provider}`,
// STT
stt: '/webapi/stt/openai',
// TTS
tts: '/webapi/tts/openai',
edge: '/webapi/tts/edge',
microsoft: '/webapi/tts/microsoft',
};