Comments (3)
Bot detected the issue body's language is not English, translate it automatically.
Title: [Feature Request]: Select the request format based on the model service provider + model name, rather than simply relying on the model name
Problem Description
There are the following scenarios:
Get the gemini-pro model of the openai request format through one-api, that is, the request format is similar:
POST {{one_base}}/v1/chat/completions
Content-Type: application/json
Authorization: Bearer {{one_key}}
{
"model": "gemini-pro",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "hello"
}
],
"stream": true
}
If you fill in one_base as the custom endpoint of openai, fill in one_key, and the custom model gemini-pro, you will still be prompted to configure Google as the model service provider.
I believe there are many similar situations. In fact, if you transfer the API through one_api, you can easily implement multi-endpoint and multi-key polling using the openai API client. Just make sure that the API format that makes the request is not simply distinguished by the model name.
Solution Description
My solution to this problem is:
- Differentiate custom model settings. Each model service provider can configure corresponding custom models.
- Use
model service provider + model name
to uniquely describe the request format allowed by a model. - The existing image recognition function can distinguish based on the model name, and the model service provider only distinguishes the request format.
- Determine the model name and request format (OpenAI/Google/Azure, etc.) based on the
model name (service provider)
selected by the user
Alternatives Considered
No response
Additional Context
No response
from chatgpt-next-web.
可以one-api里设置别名,next-web里再设置回显示名。
from chatgpt-next-web.
Bot detected the issue body's language is not English, translate it automatically.
You can set the alias in one-api, and then set the display name back in next-web.
from chatgpt-next-web.
Related Issues (20)
- [Bug] Azure api 配置不生效 HOT 4
- 接口如果返回的是201而不是200会导致意外情况 HOT 3
- [Feature Request]: feat/voice-input分支版本与现在主分支不兼容 HOT 1
- [Feature Request]: Ability to change website title and brand
- [Feature Request]: I need to know what models I'm using and how much tokens consumed in each conversation.
- [Bug] nexthchat is stuck, how can I export my application data. HOT 1
- [Bug] 在新拉取项目到本地电脑上,不能通过 bun run dev 在本地运行 HOT 4
- [Feature Request]: 能不能加入PDF文档分析功能 HOT 1
- [Feature Request]: 可以添加url参数来自动填写key吗? HOT 5
- [Feature Request]: 什么时候能够添加GPT4o的支持? HOT 7
- [Bug] GPT返回结果解析错误,多个一长串的json HOT 5
- [Feature Request]: 通过URL导入设置时,如果当前设置和要导入的设置相同则不弹窗提示 HOT 1
- 配置自定义ChatGPT模型时能否支持接口连接验证和获取可用模型列表 HOT 4
- [Bug] Webdav sync not working [SOLVED]
- [Bug] WebDAV Sync Failed HOT 13
- [Bug] ChatGLM, Qwen, Spark not supported
- [Feature Request]: 云端数据自动同步功能 HOT 1
- [Bug] The $ character returned by GPT has an escape character added when displayed.
- [Bug] Docker部署时API Key和BaseURL预设绕过登陆验证 HOT 3
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.