From 6104efb462b83edbad6183bd5b07f1f096b3744a Mon Sep 17 00:00:00 2001 From: wanghe-fit2cloud Date: Mon, 8 Jan 2024 11:49:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=20One=20API=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/one-api/0.5.11/docker-compose.yml | 8 ++++---- apps/one-api/README.md | 9 ++++++--- apps/one-api/data.yml | 17 ++++++++++++----- apps/one-api/latest/data.yml | 24 ------------------------ apps/one-api/latest/docker-compose.yml | 20 -------------------- 5 files changed, 22 insertions(+), 56 deletions(-) delete mode 100644 apps/one-api/latest/data.yml delete mode 100644 apps/one-api/latest/docker-compose.yml diff --git a/apps/one-api/0.5.11/docker-compose.yml b/apps/one-api/0.5.11/docker-compose.yml index d41bbf37..89d06a2d 100644 --- a/apps/one-api/0.5.11/docker-compose.yml +++ b/apps/one-api/0.5.11/docker-compose.yml @@ -1,20 +1,20 @@ -version: "3" +version: '3' services: one-api: image: justsong/one-api:v0.5.11 container_name: ${CONTAINER_NAME} restart: always + ports: + - ${PANEL_APP_PORT_HTTP}:3000 networks: - 1panel-network volumes: - ./data:/data - ports: - - ${PANEL_APP_PORT_HTTP}:3000 environment: - TZ=${TZ} - SQL_DSN=${SQL_DSN} labels: - createdBy: "igophper" + createdBy: "Apps" networks: 1panel-network: external: true \ No newline at end of file diff --git a/apps/one-api/README.md b/apps/one-api/README.md index 47ab7c43..14958b1a 100644 --- a/apps/one-api/README.md +++ b/apps/one-api/README.md @@ -7,9 +7,12 @@ username:root password:123456 ``` -# 主要功能 +# One API + +**One API** 是一个通过标准的 OpenAI API 格式访问所有的大模型,开箱即用。 + +## 主要功能: -**通过标准的 OpenAI API 格式访问所有的大模型,开箱即用** - 支持多种大模型: + [x] [OpenAI ChatGPT 系列模型](https://platform.openai.com/docs/guides/gpt/chat-completions-api)(支持 [Azure OpenAI API](https://learn.microsoft.com/en-us/azure/ai-services/openai/reference)) + [x] [Anthropic Claude 系列模型](https://anthropic.com) @@ -30,7 +33,7 @@ password:123456 - 支持**用户分组**以及**渠道分组**,支持为不同分组设置不同的倍率。 - 支持渠道**设置模型列表**。 - 支持**查看额度明细**。 -- 支持**用户邀请奖励**。 +- 支持**用户邀请奖励**。 - 支持以美元为单位显示额度。 - 支持发布公告,设置充值链接,设置新用户初始额度。 - 支持模型映射,重定向用户的请求模型,如无必要请不要设置,设置之后会导致请求体被重新构造而非直接透传,会导致部分还未正式支持的字段无法传递成功。 diff --git a/apps/one-api/data.yml b/apps/one-api/data.yml index 0064189e..d9a2dd3a 100644 --- a/apps/one-api/data.yml +++ b/apps/one-api/data.yml @@ -1,13 +1,20 @@ +name: One API +tags: + - 实用工具 +title: OpenAI 接口管理 & 分发系统 +type: 实用工具 +description: OpenAI 接口管理 & 分发系统 additionalProperties: key: one-api - name: one-api + name: One API tags: - Tool - shortDescZh: ✨ 通过标准的 OpenAI API 格式访问所有的大模型,开箱即用 ✨ - shortDescEn: ✨ Access all LLM through the standard OpenAI API format, easy to deploy & use ✨ + shortDescZh: 通过标准的 OpenAI API 格式访问所有的大模型,开箱即用 + shortDescEn: Access all LLM through the standard OpenAI API format, easy to deploy & use type: tool crossVersionUpdate: true limit: 0 - website: https://github.com/songquanpeng/one-api + recommend: 0 + website: https://openai.justsong.cn/ github: https://github.com/songquanpeng/one-api - document: https://github.com/songquanpeng/one-api \ No newline at end of file + document: https://github.com/songquanpeng/one-api diff --git a/apps/one-api/latest/data.yml b/apps/one-api/latest/data.yml deleted file mode 100644 index 017018f8..00000000 --- a/apps/one-api/latest/data.yml +++ /dev/null @@ -1,24 +0,0 @@ -additionalProperties: - formFields: - - default: 3000 - edit: true - envKey: PANEL_APP_PORT_HTTP - labelEn: Port - labelZh: 端口 - required: true - rule: paramPort - type: number - - default: Asia/Shanghai - edit: true - envKey: TZ - labelEn: Time Zone - labelZh: 时区 - required: true - type: text - - default: '' - edit: true - envKey: SQL_DSN - labelEn: SQL_DSN - labelZh: SQL_DSN - required: false - type: text \ No newline at end of file diff --git a/apps/one-api/latest/docker-compose.yml b/apps/one-api/latest/docker-compose.yml deleted file mode 100644 index 5b6bc4d2..00000000 --- a/apps/one-api/latest/docker-compose.yml +++ /dev/null @@ -1,20 +0,0 @@ -version: "3" -services: - one-api: - image: justsong/one-api:latest - container_name: ${CONTAINER_NAME} - restart: always - networks: - - 1panel-network - volumes: - - ./data:/data - ports: - - ${PANEL_APP_PORT_HTTP}:3000 - environment: - - TZ=${TZ} - - SQL_DSN=${SQL_DSN} - labels: - createdBy: "Apps" -networks: - 1panel-network: - external: true \ No newline at end of file