diff --git a/neo-api/README.md b/neo-api/README.md new file mode 100644 index 000000000..ce2092743 --- /dev/null +++ b/neo-api/README.md @@ -0,0 +1,5 @@ +# neo-api + +基于new-api的魔改版,部署流程请参考 new-api 教程 +[README.md]( +https://github.com/Calcium-Ion/new-api/blob/main/README.md) \ No newline at end of file diff --git a/neo-api/data.yml b/neo-api/data.yml new file mode 100644 index 000000000..85789f2da --- /dev/null +++ b/neo-api/data.yml @@ -0,0 +1,19 @@ +name: neo api +tags: + - AI / 大模型 +title: OpenAI 接口管理 & 分发系统 new-api魔改版 +description: OpenAI 接口管理 & 分发系统 ,new-api魔改版 +additionalProperties: + key: neo-api + name: neo api + tags: + - AI + shortDescZh: AI模型接口管理与分发系统,支持将多种大模型转为OpenAI格式调用、支持Midjourney Proxy、Suno、Rerank,兼容易支付协议,可供个人或者企业内部管理与分发渠道使用,本项目基于One API二次开发。 + shortDescEn: Access all LLM through the standard OpenAI API format, easy to deploy & use + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://github.com/wozulong/neo-api + github: https://github.com/wozulong/neo-api + document: https://github.com/wozulong/neo-api diff --git a/neo-api/latest/data.yml b/neo-api/latest/data.yml new file mode 100644 index 000000000..e5d51ca3e --- /dev/null +++ b/neo-api/latest/data.yml @@ -0,0 +1,52 @@ +additionalProperties: + formFields: + - default: "" + edit: true + envKey: PANEL_DB_HOST + key: mysql + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: service + - default: neoapi + edit: true + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: neoapi + edit: true + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: neoapi + edit: true + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password + - 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 diff --git a/neo-api/latest/docker-compose.yml b/neo-api/latest/docker-compose.yml new file mode 100644 index 000000000..145a8ea2d --- /dev/null +++ b/neo-api/latest/docker-compose.yml @@ -0,0 +1,26 @@ +services: + neo-api: + image: pengzhile/new-api:latest + container_name: ${CONTAINER_NAME} + restart: always + ports: + - ${PANEL_APP_PORT_HTTP}:3000 + networks: + - 1panel-network + command: --log-dir /app/logs + volumes: + - ./data:/data + - ./logs:/app/logs + environment: + - SQL_DSN=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:3306)/${PANEL_DB_NAME} # 修改此行,或注释掉以使用 SQLite 作为数据库 + - TZ=${TZ} +# - SESSION_SECRET=${SESSION_SECRET} +# - REDIS_CONN_STRING=redis://redis +# - NODE_TYPE=slave # 多机部署时从节点取消注释该行 +# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行 +# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/neo-api/logo.png b/neo-api/logo.png new file mode 100644 index 000000000..0f237a226 Binary files /dev/null and b/neo-api/logo.png differ diff --git a/neo-api/sqllite/data.yml b/neo-api/sqllite/data.yml new file mode 100644 index 000000000..47b7d314b --- /dev/null +++ b/neo-api/sqllite/data.yml @@ -0,0 +1,17 @@ +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 diff --git a/neo-api/sqllite/docker-compose.yml b/neo-api/sqllite/docker-compose.yml new file mode 100644 index 000000000..b82b5456a --- /dev/null +++ b/neo-api/sqllite/docker-compose.yml @@ -0,0 +1,25 @@ +services: + neo-api: + image: pengzhile/new-api:latest + container_name: ${CONTAINER_NAME} + restart: always + ports: + - ${PANEL_APP_PORT_HTTP}:3000 + networks: + - 1panel-network + command: --log-dir /app/logs + volumes: + - ./data:/data + - ./logs:/app/logs + environment: + - TZ=${TZ} +# - SESSION_SECRET=${SESSION_SECRET} +# - REDIS_CONN_STRING=redis://redis +# - NODE_TYPE=slave # 多机部署时从节点取消注释该行 +# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行 +# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true diff --git a/new-api/sqllite/data.yml b/new-api/sqllite/data.yml new file mode 100644 index 000000000..47b7d314b --- /dev/null +++ b/new-api/sqllite/data.yml @@ -0,0 +1,17 @@ +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 diff --git a/new-api/sqllite/docker-compose.yml b/new-api/sqllite/docker-compose.yml new file mode 100644 index 000000000..04c9b34bd --- /dev/null +++ b/new-api/sqllite/docker-compose.yml @@ -0,0 +1,25 @@ +services: + one-api: + image: calciumion/new-api:latest + container_name: ${CONTAINER_NAME} + restart: always + ports: + - ${PANEL_APP_PORT_HTTP}:3000 + networks: + - 1panel-network + command: --log-dir /app/logs + volumes: + - ./data:/data + - ./logs:/app/logs + environment: + - TZ=${TZ} +# - SESSION_SECRET=${SESSION_SECRET} +# - REDIS_CONN_STRING=redis://redis +# - NODE_TYPE=slave # 多机部署时从节点取消注释该行 +# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行 +# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行 + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true