Skip to content

🐛 [Bug]: AI 功能完全不可用,代码里写死了本地 Ollama 的接口地址 /api/generate #321

@kagol

Description

@kagol

Version

latest

Link to minimal reproduction

尝试配置 DeepSeek 的 apikey,接口 404 了。

看了下 AI 模块的源码,发现请求 AI 的接口时写死了本地 Ollama 接口 /api/generate,而用户真实的使用场景不可以使用本地大模型的。

问题源码:

const response = await fetch(`${this.host}/api/generate`, {

Image

Step to reproduce

如上说明

What is expected

No response

What is actually happening

No response

What is your project name

Wiki

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions