Skip to content

OpenAI Embedding 类型配置硅基流动时,测试按钮始终报错 400 #8586

@dadofadun

Description

@dadofadun

What happened / 发生了什么

环境: AstrBot 最新版,Windows 系统

配置信息:

提供商类型:OpenAI Embedding

API Base URL:https://api.siliconflow.cn/v1

API Key:已正确填写(硅基流动)

嵌入模型:已尝试 BAAI/bge-m3 和 BAAI/bge-large-zh-v1.5

嵌入维度:1024

问题描述: 严格按照官方文档附录配置后,点击“测试”按钮始终返回:
Error code: 400 - {'code': 20015, 'message': 'The parameter is invalid. Please check again.', 'data': None}

补充信息: 同样的 AstrBot 环境,使用 Ollama Embedding 类型配置本地模型测试通过,说明嵌入模型配置流程正常。怀疑是测试接口在向硅基流动发送请求时,请求体格式或参数与硅基流动的要求不兼容。

Reproduce / 如何复现?

按照官方文档(https://docs.astrbot.app/use/knowledge-base.html#%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6)填写embedding model,随后进行测试

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

4.25.2 Windows powershell deployment

OS

Windows

Logs / 报错日志

astrbot.log

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't workingfeature:knowledge-baseThe bug / feature is about knowledge base

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions