Skip to content
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

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

Open
livingbody opened this issue Nov 29, 2023 · 1 comment
Open

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

livingbody opened this issue Nov 29, 2023 · 1 comment
Assignees

Comments

@livingbody
Copy link

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

embeddings = ErnieEmbeddings(aistudio_access_token=aistudio_access_token, 
                             chunk_size=16,
                             sleep_time=0.5)
@Bobholamovic
Copy link
Member

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

@Bobholamovic Bobholamovic self-assigned this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants