jm12138/WenxinWorkshop-Python-SDK

【期望】接入千帆支持的大模型

Ikaros-521 opened this issue · 4 comments

如题,如llama等

其实应该是可以直接用的,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'
)

后续会跟着千帆的更新,更新一下其他功能的,function call 之类的,有空的话

其实应该是可以直接用的,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'
)

好好好