Skip to content

[Bug]嵌入模型bge-m3,设置1024维度报错 #6421

@wlcomeforyou

Description

@wlcomeforyou

What happened / 发生了什么

在嵌入模型设置维度能否能否兼容不支持设置维度的模型配置。
bge-m3嵌入模型不支持设置维度,设置维度会报错{'error': {'message': 'Model "bge-m3" does not support matryoshka representation, changing output dimensions will lead to poor results.', 'type': 'BadRequestError', 'param': None, 'code': 400}}。

Reproduce / 如何复现?

选择bge-m3, 默认设置1024维度, 点击测试 ,服务就会报错。

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

4.20.0 docker部署 Linux/amd64

OS

Linux

Logs / 报错日志

Image

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 working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions