Comments (5)
遵循 openai 的参数、响应结构和路由(v1/chat/completions),就可以套用了
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request]: About how to access new API for secondary development
Problem Description
I would like to ask how to access the new API. An LLM is deployed on the server. I mainly want to add a UI interface to my LLM interface. Is there any specific operation or documentation?
Solution Description
none
Alternatives Considered
No response
Additional Context
No response
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
Follow openai's parameters, response structure and routing (v1/chat/completions) and you can apply it
from chatgpt-next-web.
你的LLM Api可以直接效仿 openai 的接口协议实现,然后,在部署nextchat应用的时候,在环境变量中设置BASE_URL指向你的LLM服务,在openai API协议的入参中,有一个model字段,标识的是你调用的模型名,这个model字段在你的LLM Api的接口实现中可以忽略掉
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
Your LLM Api can directly imitate the interface protocol implementation of openai. Then, when deploying the nextchat application, set the BASE_URL in the environment variable to point to your LLM service. In the input parameters of the openai API protocol, there is a model field, identified It is the name of the model you are calling. This model field can be ignored in your LLM Api interface implementation.
from chatgpt-next-web.
Related Issues (20)
- [Feature Request]: 如何可以让聊天窗口默认全屏么,通过env什么的 HOT 2
- 支持阿里的通义千问吗。qwen。。。大降价。。1块钱可以买200万令牌 HOT 5
- [Bug] 更新Docker镜像到2.12.3之后,无法使用PROXY_URL字段 HOT 9
- [Feature Request]: Does it support the Qwen model? HOT 1
- [Bug] 无法导入本地的json数据 HOT 5
- Title HOT 1
- [Bug] 自定义模型和预设模型名称相同时,会被预设模型覆盖 HOT 6
- [gpt-4o]: Real-time voice functionality HOT 2
- [Feature Request]: Japanese Display Font Issue HOT 1
- [Feature Request]: 增加多个自定义提供商功能 HOT 2
- 真心提问:大家的api key都是从哪里买的? HOT 13
- [Bug] 配置BASE_URL后直接返回html代码 HOT 3
- [Feature Request]: Add more environment variable options HOT 1
- [Bug] 云同步Webdav 失败 HOT 5
- 目前项目本身支持Azure OpenAI 吗?还是只能通过搭建第三方代理的方式来访问? HOT 7
- [Feature Request]: Enhanced UI Modularity HOT 1
- [Bug] HOT 7
- [Feature Request]: 不清楚面具怎么用,能不能加一个例子? HOT 5
- [Feature Request]: 聊天页面,添加一个清空内容按钮。 HOT 3
- [Bug] 接入自定义模型 阿里的Qwen HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-next-web.