mirror of
https://github.com/jasonxu114514/opencode2api.git
synced 2026-12-05 16:04:01 +00:00
fix: correct free-model probes and add adaptive reasoning (#54)
This commit is contained in:
1 parent
ab2451da2a
commit
ef2df3f056
12 files changed
+390
-151
No files matched your search
+4
-1
@@ -12,7 +12,7 @@ let csrf = "",
|
||||
logRenderPending = false,
|
||||
toastTimer = null;
|
||||
const pages = {
|
||||
availability: ["13", "免费模型可用性", "每小时探测,失败后禁用并每 24 小时复测。"],
|
||||
availability: ["13", "免费模型可用性", "每小时探测,明确失效后禁用并每 24 小时复测。"],
|
||||
rotation: ["12", "模型轮转", "共享当前模型、故障切换与尝试记录。"],
|
||||
overview: ["01", "运行桌面", "最近一小时、进程累计与当前资源状态。"],
|
||||
guide: ["02", "首次运行", "用六个检查点完成从配置到首个请求。"],
|
||||
@@ -1401,6 +1401,9 @@ async function loadAvailability() {
|
||||
item.model,
|
||||
item.disabled ? "已禁用" : "已启用",
|
||||
[item.channel, item.reason].filter(Boolean).join(" / ") || "待探测",
|
||||
item.auto_effort?.effort
|
||||
? `${item.auto_effort.effort}(${date(item.effort_checked_at)})`
|
||||
: "未验证",
|
||||
date(item.checked_at),
|
||||
date(item.next_check),
|
||||
]) {
|
||||
|
||||
+5
-1
@@ -96,7 +96,9 @@
|
||||
</div>
|
||||
<p>
|
||||
检查名称含 free 或元数据零价格且未弃用的模型。优先匿名通道,再尝试 Zen
|
||||
Key;全部失败后禁用,24 小时后复测。成功或手动恢复后,下一次探测在 1 小时后。
|
||||
Key;明确模型失效才禁用并在 24 小时后复测。限流、超时、网络和服务端错误不新增禁用,1
|
||||
小时后重试。 System One 使用专用的 1+1 决策问题。设置 auto
|
||||
强度后,显示探测验证过的最高档位。
|
||||
</p>
|
||||
<p id="availability-error" role="status"></p>
|
||||
<div class="table-wrap">
|
||||
@@ -106,6 +108,7 @@
|
||||
<th>模型</th>
|
||||
<th>状态</th>
|
||||
<th>通道 / 结果</th>
|
||||
<th>已验证思考档位</th>
|
||||
<th>上次探测</th>
|
||||
<th>下次探测</th>
|
||||
<th>操作</th>
|
||||
@@ -598,6 +601,7 @@
|
||||
<label>默认强度</label
|
||||
><select id="c-reasoning-effort">
|
||||
<option value="">跟随客户端</option>
|
||||
<option value="auto">auto(探测最高可用档)</option>
|
||||
<option value="minimal">minimal</option>
|
||||
<option value="low">low</option>
|
||||
<option value="medium">medium</option>
|
||||
|
||||
Reference in new issue
Block a user