diff --git a/apps/lobe-chat/config.json b/apps/lobe-chat/config.json new file mode 100644 index 00000000..49a1f343 --- /dev/null +++ b/apps/lobe-chat/config.json @@ -0,0 +1,41 @@ +{ + "name": "Lobe Chat", + "available": true, + "port": 3210, + "exposable": true, + "id": "lobe-chat", + "description": "LobeChat is an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible (Function Call) plugin system.", + "tipi_version": 1, + "version": "0.116.4", + "categories": ["utilities", "ai", "development"], + "short_desc": "LLM chatbot framework", + "author": "https://github.com/lobehub", + "source": "https://github.com/lobehub/lobe-chat", + "website": "https://github.com/lobehub/lobe-chat", + "form_fields": [ + { + "type": "text", + "label": "OpenAI API Key", + "required": true, + "env_variable": "OPENAI_API_KEY" + }, + { + "type": "fqdn", + "label": "OpenAI API URL", + "required": false, + "env_variable": "OPENAI_PROXY_URL" + }, + { + "type": "text", + "label": "Custom Models", + "required": false, + "env_variable": "CUSTOM_MODELS" + }, + { + "type": "password", + "label": "Password", + "required": false, + "env_variable": "ACCESS_CODE" + } + ] +} diff --git a/apps/lobe-chat/docker-compose.yml b/apps/lobe-chat/docker-compose.yml new file mode 100644 index 00000000..618a4ebf --- /dev/null +++ b/apps/lobe-chat/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.9" +services: + lobe-chat: + container_name: lobe-chat + image: lobehub/lobe-chat:v0.116.4 + environment: + - OPENAI_API_KEY=${OPENAI_API_KEY} + - OPENAI_PROXY_URL=${OPEANAI_PROXY_URL} + - CUSTOM_MODELS=${CUSTOM_MODELS} + - ACCESS_CODE=${ACCESS_CODE} + ports: + - ${APP_PORT}:3210 + restart: unless-stopped + networks: + - tipi_main_network diff --git a/apps/lobe-chat/metadata/description.md b/apps/lobe-chat/metadata/description.md new file mode 100644 index 00000000..f56fe8bd --- /dev/null +++ b/apps/lobe-chat/metadata/description.md @@ -0,0 +1,13 @@ +# Lobe Chat + +LobeChat is an open-source, high-performance chatbot framework that supports +speech synthesis, multimodal, and extensible +([Function Call](https://sspai.com/post/81986)) plugin system. + +## Settings +| Environment Variable | Required | Description | Example | +| -------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `OPENAI_API_KEY` | Yes | This is the API key you apply on the OpenAI account page | `sk-xxxxxx...xxxxxx` | +| `OPENAI_PROXY_URL` | No | If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | `https://api.chatanywhere.cn/v1`
The default value is
`https://api.openai.com/v1` | +| `ACCESS_CODE` | No | Add a password to access this service; you can set a long password to avoid leaking. If this value contains a comma, it is a password array. | `awCTe)re_r74` or `rtrt_ewee3@09!` or `code1,code2,code3` | +| `CUSTOM_MODELS` | No | Used to control the model list. Use `+` to add a model, `-` to hide a model, and `model_name=display_name` to customize the display name of a model, separated by commas. | `qwen-7b-chat,+glm-6b,-gpt-3.5-turbo` | diff --git a/apps/lobe-chat/metadata/logo.jpg b/apps/lobe-chat/metadata/logo.jpg new file mode 100644 index 00000000..13df2a97 Binary files /dev/null and b/apps/lobe-chat/metadata/logo.jpg differ