mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 18:06:56 +08:00
feat: 优化 One API 安装包
This commit is contained in:
parent
7efacf1828
commit
6104efb462
@ -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
|
@ -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
|
||||
- 支持**用户分组**以及**渠道分组**,支持为不同分组设置不同的倍率。
|
||||
- 支持渠道**设置模型列表**。
|
||||
- 支持**查看额度明细**。
|
||||
- 支持**用户邀请奖励**。
|
||||
- 支持**用户邀请奖励**。
|
||||
- 支持以美元为单位显示额度。
|
||||
- 支持发布公告,设置充值链接,设置新用户初始额度。
|
||||
- 支持模型映射,重定向用户的请求模型,如无必要请不要设置,设置之后会导致请求体被重新构造而非直接透传,会导致部分还未正式支持的字段无法传递成功。
|
||||
|
@ -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
|
||||
document: https://github.com/songquanpeng/one-api
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user