【期望】接入千帆支持的大模型
Ikaros-521 opened this issue · 4 comments
Ikaros-521 commented
如题,如llama等
jm12138 commented
其实应该是可以直接用的,url换成llama的比如 https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/llama_2_7b
erniebot = LLMAPI(
api_key=api_key,
secret_key=secret_key,
url='https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/llama_2_7b'
)
jm12138 commented
后续会跟着千帆的更新,更新一下其他功能的,function call 之类的,有空的话
Ikaros-521 commented
其实应该是可以直接用的,url换成llama的比如 https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/llama_2_7b
erniebot = LLMAPI( api_key=api_key, secret_key=secret_key, url='https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/llama_2_7b' )
好好好
Ikaros-521 commented