Skip to content

[Feature]: 添加自定义provider #3788

@duxiaokang

Description

@duxiaokang

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

What problem does this solve?

我添加阿里百炼Token Plan,页面上显示是让我填写OpenAI Compatible的URL,当我填写了Token plan教程里的OpenAI Compatible地址,使用glm-5.1报错,提示Malformed request (HTTP 400): the request body was rejected. This is likely a bug — please report it if it persists.
然后我用AI检查reasonix 的配置文件,~/Library/Application Support/reasonix/config.toml里写的明明是anthropic,我使用vim手动修改URL地址为anthropic协议的地址后恢复正常

Proposed solution

自定义provider支持用户切换是OpenAI格式还是anthropic格式,选择之后要跟~/Library/Application Support/reasonix/config.toml配置文件里的值保持相同

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    configConfiguration & setup (internal/config)enhancementNew feature or requestmacosmacOS-specificproviderModel providers & selection (internal/provider)v2Go rewrite (1.x) — main-v2 branch, active development

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions