add neo-api
This commit is contained in:
parent
aa85adbc81
commit
9baffe9d0f
|
|
@ -0,0 +1,5 @@
|
||||||
|
# neo-api
|
||||||
|
|
||||||
|
基于new-api的魔改版,部署流程请参考 new-api 教程
|
||||||
|
[README.md](
|
||||||
|
https://github.com/Calcium-Ion/new-api/blob/main/README.md)
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 7.9 KiB |
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue