Ad_closeNN关于Cline免费模型在OpenCode的一些坑 中发帖

TL;DR: 

OpenAI Compatible
https://api.cline.bot/api/v1
"variants": { "xhigh": {"reasoningEffort": "xhigh"}}

[image]

从 https://linux.do/t/topic/2321520 继续讨论。
接入 OpenCode 后,相比于官方 API,还是有一些坑点的。

三个免费模型(v4/2.5/3)端点都不支持 Anthropic 和 OpenAI Responses 格式,只支持 OpenAI Compatible 格式(@ai-sdk/openai-compatible),否则返回

{"error":"Unauthorized: Please make sure you're using the latest version of Cline and r...