-
Notifications
You must be signed in to change notification settings - Fork 669
【feature】llm添加openai风格服务端支持(自定义代理地址和模型名称) #291
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
base: main
Are you sure you want to change the base?
Conversation
C:\Users\11238.conda\envs\aisearch\lib\site-packages\lagent\agents\stream.py:212: UserWarning: Neither plugin nor interpreter executor is initialized. An exception will be thrown when the agent call a tool. The above exception was the direct cause of the following exception: Traceback (most recent call last): response {"id":"chatcmpl-016f9b82f10b43369ea9fbc3796e2717","object":"chat.completion.chunk","created":1739267631,"model":"qwen2:7b-instruct-fp16","choices":[{"index":0,"delta":{"role":"assistant","content":"To"}}]} The above exception was the direct cause of the following exception: Traceback (most recent call last): ERROR:root:An error occurred while generating the response. The above exception was the direct cause of the following exception: Traceback (most recent call last): |
大佬知道这是为什么么 |
你使用的哪种渠道?大概率是伪openai风格。 |
qwen2:7b-instruct-fp16是通过什么方式接入的oneapi。 |
InternLM/lagent#294
目的
支持已有的llm服务。
使用方法
PS 如果lagent还未合并该pr。需要手动复制lagent项目294的pr文件,覆盖python安装包lagent路径里面的相应文件。(或者自行打包lagent去安装)
mindsearch
PS: INTERNLM似乎有做适配改造。ds-14b有自己的逻辑,似乎不适合mindsearch

oneapi测试通过如下: