-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Feature]: 添加自定义provider #3788
Copy link
Copy link
Open
Labels
configConfiguration & setup (internal/config)Configuration & setup (internal/config)enhancementNew feature or requestNew feature or requestmacosmacOS-specificmacOS-specificproviderModel providers & selection (internal/provider)Model providers & selection (internal/provider)v2Go rewrite (1.x) — main-v2 branch, active developmentGo rewrite (1.x) — main-v2 branch, active development
Metadata
Metadata
Assignees
Labels
configConfiguration & setup (internal/config)Configuration & setup (internal/config)enhancementNew feature or requestNew feature or requestmacosmacOS-specificmacOS-specificproviderModel providers & selection (internal/provider)Model providers & selection (internal/provider)v2Go rewrite (1.x) — main-v2 branch, active developmentGo rewrite (1.x) — main-v2 branch, active development
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配置文件里的值保持相同