diemus / azure-openai-proxy

A proxy for Azure OpenAI API that can convert an OpenAI request into an Azure OpenAI request.
MIT License
629 stars 67 forks source link

不支持/v1/engines接口 #4

Open summerbuild opened 1 year ago

summerbuild commented 1 year ago

测了下,不支持类似/v1/engines/text-embedding-ada-002/embeddings接口

diemus commented 1 year ago

/v1/engines的接口是做什么用的?

diemus commented 1 year ago

这个在官网页面有写是要废弃了吧

summerbuild commented 1 year ago

自己改了一版支持了,这个issue关掉吧

diemus commented 1 year ago

可以说下为什么需要支持这个接口,有需要也可以加到项目里

summerbuild commented 1 year ago

用的llama-index库,底下它自己调的这个,我也不知道为啥它还在用老接口,这个库保有量还是挺大的,我是建议可以加上 参考 https://github.com/jerryjliu/llama_index

diemus commented 1 year ago

我看过这个库的用法,他底层依赖的还是langchain,你是不是langchain配置的不对,用的那个方法会涉及这个?我记得是用langchain生成一个llm传进去

diemus commented 1 year ago

今天试了一下,确实是依赖了一个过期的接口

diemus commented 1 year ago

@summerbuild 你能提个pr吗?我不太了解这个接口的用法,也没有文档。我给合到proxy里,也让其他人少踩一下坑。

notedit commented 1 year ago

@summerbuild @diemus 我也遇到这个问题 求分享解决方案

notedit commented 1 year ago

试了下langchain 确实有这个问题

notedit commented 1 year ago

看了下文档和sdk的代码: openai python sdk 中用的api 跟他们官网不是同一套API,搜了下openai python sdk中的issues 短期之内应该也不会改

diemus commented 1 year ago

不知道这些废弃的接口有没有文档,没有文档很难做适配

notedit commented 1 year ago

没有看到文档,但我先适配了一个版本,晚点我提交个PR