Skip to content
Discussion options

You must be logged in to vote

用dsh分析了一下,使用flash模型、耗时15分钟、花费6元人民币。按dsh建议修改settings.yaml配置、这个问题解决了。

下面是DSH分析的原因和修改过建议:

  1. 「添加提供方」没响应 + 已有第三方模型读不到 —— 根因
    触发点:settings.yaml 里 llm-pi-ai 分节中有一条 opencode 提供方配置,它列出的模型(如 ling-3.0-flash-free、gemini-3.5-flash-lite 等 6 个)都不在已安装的 pi-ai 0.84.2 内置目录中,而且该路由既没声明 api 协议、也没声明 baseURL。llm-pi-ai 的 resolveProfiles 对这种路由会直接抛错:

llm-pi-ai: provider "opencode" model "ling-3.0-flash-free" needs an api; the installed catalog does not describe it…

传播链(为什么一条坏配置能拖垮整个页面):

llm-pi-ai 挂载时通过 installSettingsSection 注册 llm-pi-ai 设置命名空间,注册时会对已存分节执行 owner 校验 assertServiceable。
SettingsProvider.register() 解析存量分节并跑校验时不捕获异常——校验一抛,整个命名空间的注册就失败(这是该版本沿用的既有设计,有专门测试锁定)。
注册失败连锁导致:
llm-pi-ai 命名空间从 settings.describe 里整个…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by osd-wang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants