Comments (5)
Azure OpenAI API 调用是可以走通的,好奇是否不支持REST API的形式
from one-api.
http://localhost:3000/ 如果不带上v1
默认是进入管理后台的,但Azure OpenAI的接口是不带v1
的,感觉是路由层的规则限制了,因为不懂go语言,同样被这个问题困扰中
from one-api.
@draenix 把issue翻了几遍,找到了作者的一段回复内容,作者说“另外 One API 是把 Azure 的格式转换为 OpenAI 的格式,而不是反过来。”。原文在这里:#127
我的理解是,我们在One API中配置的渠道不管是OpenAI还是Azure OpenAI还是开源模型,对调用者来说,他都应该按OpenAI的格式来使用。
我做了测试,渠道中配置了Azure OpenAI模型,使用langchain框架和postman的http请求调用,都成功了。
from one-api.
嗯,我也尝试了Azure的 OpenAI API 调用是可以走通的。集合接口的restful API应该是目前还没兼容支持的。正如作者和老哥你的理解,设计的初衷都是为了支持OpenAPI格式的不同模型。所以,开源了一套小众对外部用户提供类似chatgpt窗口的收费服务,
没有考虑团队内部的特殊使用场景,源码里存在有两个限制:不支持api多样性+token写死了有效期一个月
from one-api.
之后的重构计划会考虑到这一点的,感谢关注,重构需要时间希望理解
from one-api.
Related Issues (20)
- 功能 “测试所有已启用通道” 的描述和实现不符
- dall-e-3 因账户rate limit 为 0 导致出错,但oneapi记录为成功调用 HOT 4
- 添加百川53B支持、Baichuan2-Turbo、Baichuan2-Turbo-192k
- 是否可以为每个渠道单独设置http/https/socks5 proxy HOT 1
- 【咨询】dall-e-3重定向dall-e-2不起作用,不知道是不是我的问题,求论证。 HOT 2
- 支持星火 v3 的多模态 HOT 1
- gemini-pro-vision返回400错误,gemini-pro正常使用 HOT 8
- gamini具体该如何使用啊?没看懂.............. HOT 9
- ERNIE-Bot支持function_call HOT 2
- 就是邀请链接的参数切换页面丢失
- 连接不上千问api HOT 1
- 不支持sock5h代理 HOT 1
- github 注册没有aff
- 最新版,使用dockerfile部署后`version`是空值造成重复消息弹窗。 HOT 1
- 嵌入式模型能否支持bge-large-zh?
- 用代码本地部署打开空白-已解决 HOT 3
- docker无法安装报警告 HOT 1
- 请求completions接口提示insufficient_user_quota HOT 1
- 请求支持 Huggingface TGI 推理框架 API HOT 1
- error code: 521 HOT 1
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.