PaddlePaddle / ERNIE-SDK

ERNIE Bot Agent is a Large Language Model (LLM) Agent Framework, powered by the advanced capabilities of ERNIE Bot and the platform resources of Baidu AI Studio.
http://ernie-bot-agent.readthedocs.io/
Apache License 2.0
341 stars 50 forks source link

建议 ErnieEmbeddings 支持 qianfan的ak/sk鉴权方式 #108

Open livingbody opened 9 months ago

livingbody commented 9 months ago

目前 ErnieEmbeddings 仅支持aistudio模式,不支持 qianfan的ak/sk鉴权方式

embeddings = ErnieEmbeddings(aistudio_access_token=aistudio_access_token, 
                             chunk_size=16,
                             sleep_time=0.5)
Bobholamovic commented 9 months ago

你好,实际上LangChain中已经集成了qianfan的embeddings接口,详见文档:https://api.python.langchain.com/en/latest/embeddings/langchain.embeddings.baidu_qianfan_endpoint.QianfanEmbeddingsEndpoint.html#