| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
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): |
Sorry, something went wrong.
大佬知道这是为什么么 |
Sorry, something went wrong.
|
你使用的哪种渠道?大概率是伪openai风格。 |
Sorry, something went wrong.
Sorry, something went wrong.
|
qwen2:7b-instruct-fp16是通过什么方式接入的oneapi。 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
InternLM/lagent#294
目的
支持已有的llm服务。
使用方法
PS 如果lagent还未合并该pr。需要手动复制lagent项目294的pr文件,覆盖python安装包lagent路径里面的相应文件。(或者自行打包lagent去安装)
mindsearch
from lagent.llms import ( GPTStyleAPI, GPTAPI, INTERNLM2_META, HFTransformerCasualLM, LMDeployClient, LMDeployServer, ) api_base = 'http://192.168.26.213:13000/v1/chat/completions' # oneapi # model_name = "Baichuan2-Turbo" model_name ="deepseek-r1-14b" gptstyle = dict( type=GPTStyleAPI, model_type=model_name, # key=os.environ.get("OPENAI_STYLE_API_KEY", "sk-IXgCTwuoEwxL1CiBE4744688D8094521B70f4aDeE6830c5e"), # api_base=os.environ.get("OPENAI_STYLE_API_BASE",api_base), key="sk-CZOUavQGNzkkQjZr626908A0011040F8B743C526F315D6Ee", api_base=api_base, )PS: INTERNLM似乎有做适配改造。ds-14b有自己的逻辑,似乎不适合mindsearch

oneapi测试通过如下: