Skip to content

openai_embedding模型在AstrBot4.21和4.22版本下无法通过测试并出现报错 #6887

@Branwen07

Description

@Branwen07

What happened / 发生了什么

Image

比如text-embedding-3-large模型,连接测试通过,但出现'str' object has no attribute 'data'报错,无法构建知识库。

Reproduce / 如何复现?

更新astrbot4.21和4.22版本
导入openai旗下的embedding嵌入模型

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

4.21/4.22、docker

OS

Linux

Logs / 报错日志

'str' object has no attribute 'data'

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