Comments (5)
已经支持了
from one-api.
是的,这个是之后要解决的问题,做到针对某个 key 只返回该 key 可用的模型列表。
from one-api.
是的,这个是之后要解决的问题,做到针对某个 key 只返回该 key 可用的模型列表。
您好,请问这个目前有计划解决吗?
from one-api.
是的,这个是之后要解决的问题,做到针对某个 key 只返回该 key 可用的模型列表。
您好,如果我提交一个有关这个功能的PR可以得到通过吗?
from one-api.
@ChiayenGu 我也想提这个问题,这块需求确实挺多的。
我看去年六月 @ckt1031 提到下边这段代码,用这个逻辑能直接得到模型列表,但比较低效暂不考虑。
one-api/middleware/distributor.go
Line 71 in 4ae311e
比起调模型跑数据,调用 v1/models
的次数非常非常少,尽管低效但不影响使用。
是的,这个是之后要解决的问题,做到针对某个 key 只返回该 key 可用的模型列表。
@songquanpeng 大佬可以考虑先用简单方法填上,后续再做更加系统的处理?
补充下使用场景和原因:
- 基于 OneAPI 的项目需主动编写 API 手册,用户才能知道模型列表,而无法直接通过代码获取(比如 https://4.0.wokaai.com/about )
- 个人搭建给实验室内部用,陆续将本地模型添加到 OneAPI 中,如果成员能通过
v1/models
获知支持列表会更方便 - 接口返回 OneAPI 支持的所有模型,这对维护者有帮助,但对使用者用处不大
- 有不少 Issue 也提到这个问题了:
from one-api.
Related Issues (20)
- 通义接口不稳定 HOT 2
- OneAPI English - Global Version
- Unreasonable cogview-3 prompt length limit
- Ollama填写地址成功调用后,但是仍出现404现象 HOT 1
- 是不是目前只能支持langchain的chat模式,llm模型不支持呢
- 建议增加更多运营功能
- 请求接入dify知识库 HOT 5
- 希望增加新的知识库 MaxKB
- docker.io 不能访问 HOT 3
- [开源合作] 请求添加VChart引用 HOT 3
- 对接本地模型的openai接口,stream模式下没有返回 HOT 12
- 关于将本项目转成组织项目的想法 HOT 17
- 关于项目镜像完善建议
- 调用讯飞星火Spark Pro/Max Function Call 不能按预期返回 Function Call 形式的结果,只会返回普通对话形式的结果
- 隔离网环境oneapi代理功能无法使用
- gpt-4o计价存在问题 HOT 8
- docker版启动后,可能得等一阵子才能用api HOT 3
- 对于报错传递给上游的转发客户端“xx无可用渠道”应该进行禁用 HOT 1
- minimax模型不能正确记录log HOT 2
- cloudflare Workers AI 文本生成图像模型支持 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 one-api.