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

调用embedding模型报错(openai api) #5179

Open
rxxy opened this issue Jan 6, 2025 · 1 comment
Open

调用embedding模型报错(openai api) #5179

rxxy opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@rxxy
Copy link

rxxy commented Jan 6, 2025

问题描述 / Problem Description

创建知识库后,加入文件时调用embedding模型报错

使用了三四个embedding在线openai api模型,报的差不多的错误

2025-01-06 22:53:03 2025-01-06 22:53:03.662 | DEBUG    | chatchat.server.knowledge_base.kb_cache.base:acquire:43 - thread 126 结束操作:('test', 'voyage-3-large')。初始化

2025-01-06 22:53:03 openai.BadRequestError: Error code: 400 - {'detail': "The request body is not valid JSON, or some arguments were not specified properly. In particular, Value '[2381]' supplied for argument 'input' is not a valid string"}
@rxxy rxxy added the bug Something isn't working label Jan 6, 2025
@rxxy
Copy link
Author

rxxy commented Jan 6, 2025

转向量的api大多都只支持字符串/字符串数组,实际传的好像是数值类型数组

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant