Skip to content

原生不支持 mistralai 吗 #112

Description

@hlf2016

为什么本地 配置了 mistral 官方的 key 后 始终无法调通
提示
ImportError: mistral required packages are not installed. Please install them with pip install any-llm-sdk[mistral]. Specific error message: cannot import name 'Mistral' from 'mistralai' (unknown location)
╭────────────────────────────────────────────────────── Error ───────────────────────────────────────────────────────╮
│ An error occurred at stage 'turn': mistral required packages are not installed. Please install them with pip │ │ install any-llm-sdk. Specific error message: cannot import name 'Mistral' from 'mistralai' (unknown location)

即使运行了 uv add 'any-llm-sdk[mistral]' 也还是不行 请大佬解惑

Activity

  1. PsiACE commented on Mar 15, 2026

    @PsiACE
    Member

    Hi, 很开心你尝试 Bub ,由于我们暂时还没有更新 any-llm-sdk 对应的依赖,所以 Mistral 需要使用一个较低的版本运行

    当前可用配置建议是:

    BUB_MODEL=mistral:mistral-small-latest
    BUB_MISTRAL_API_KEY=your_key

    依赖可以采用这样的形式安装:

    uv add "any-llm-sdk[mistral]" "mistralai<2"

    辛苦你再测试一下是否可用

  2. hlf2016 commented on Mar 16, 2026

    @hlf2016
    Author

    Hi, 很开心你尝试 Bub ,由于我们暂时还没有更新 any-llm-sdk 对应的依赖,所以 Mistral 需要使用一个较低的版本运行

    当前可用配置建议是:

    BUB_MODEL=mistral:mistral-small-latest BUB_MISTRAL_API_KEY=your_key

    依赖可以采用这样的形式安装:

    uv add "any-llm-sdk[mistral]" "mistralai<2"

    辛苦你再测试一下是否可用

    It works for me.Thanks.

  3. locked and limited conversation to collaborators on Mar 16, 2026
  4. converted this issue into a discussion #117 on Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions