Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持/v1/engines接口 #4

Open
summerbuild opened this issue Apr 7, 2023 · 13 comments
Open

不支持/v1/engines接口 #4

summerbuild opened this issue Apr 7, 2023 · 13 comments

Comments

@summerbuild
Copy link

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

@diemus
Copy link
Owner

diemus commented Apr 7, 2023

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

@diemus
Copy link
Owner

diemus commented Apr 7, 2023

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

@summerbuild
Copy link
Author

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

@diemus
Copy link
Owner

diemus commented Apr 9, 2023

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

@summerbuild
Copy link
Author

summerbuild commented Apr 11, 2023

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

@diemus
Copy link
Owner

diemus commented Apr 12, 2023

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

@diemus
Copy link
Owner

diemus commented Apr 13, 2023

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

@diemus
Copy link
Owner

diemus commented Apr 13, 2023

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

@notedit
Copy link

notedit commented Apr 27, 2023

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

@notedit
Copy link

notedit commented Apr 27, 2023

试了下langchain 确实有这个问题

@notedit
Copy link

notedit commented Apr 27, 2023

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

@diemus
Copy link
Owner

diemus commented Apr 28, 2023

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

@notedit
Copy link

notedit commented Apr 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants