fix(portable): keep config center visible on startup
This commit is contained in:
@@ -168,7 +168,7 @@ input:focus { border-color: #ff6b35; }
|
||||
<span class="check">✓</span>
|
||||
<h4>虾盘云 <span class="tag hot">首选</span><span class="tag">中转站</span></h4>
|
||||
<p>一个 Key 用 DeepSeek / Claude / GPT / 通义 等国内外全部大模型,无需翻墙</p>
|
||||
<a class="buy-link" href="https://u-claw.org/cloud.html" target="_blank">→ 注册并获取 API Key</a>
|
||||
<a class="buy-link" href="https://u-claw.org/cloud.html" target="_blank" data-action-label="注册 / 充值 / 获取 API Key">→ 注册 / 充值 / 获取 API Key</a>
|
||||
</div>
|
||||
<div class="model-card" data-provider="deepseek" data-base="https://api.deepseek.com/v1" data-model="deepseek-chat">
|
||||
<span class="check">✓</span>
|
||||
@@ -255,7 +255,7 @@ input:focus { border-color: #ff6b35; }
|
||||
<p class="desc" id="step2desc">请填写对应模型的 API Key</p>
|
||||
|
||||
<div class="api-info" id="buyInfo">
|
||||
<h4>📌 如何获取 API Key?</h4>
|
||||
<h4>📌 获取 / 充值 API Key</h4>
|
||||
<div class="provider-links" id="providerLinks"></div>
|
||||
</div>
|
||||
|
||||
@@ -477,7 +477,7 @@ function setupStep2() {
|
||||
linksDiv.innerHTML = '';
|
||||
if (buyLink) {
|
||||
linksDiv.innerHTML = `
|
||||
<a href="${buyLink.href}" target="_blank">🔑 ${name} — 获取 API Key</a>
|
||||
<a href="${buyLink.href}" target="_blank">🔑 ${name} — ${buyLink.dataset.actionLabel || '获取 API Key'}</a>
|
||||
`;
|
||||
}
|
||||
// Add common alternatives
|
||||
@@ -498,7 +498,7 @@ function togglePw() {
|
||||
function buildOpenClawConfig(provider, base, model, apiKey) {
|
||||
// Base config that OpenClaw expects
|
||||
const baseConfig = {
|
||||
gateway: { auth: { mode: 'token', token: 'uclaw', scopes: ['operator.admin'] } },
|
||||
gateway: { auth: { mode: 'token', token: 'uclaw', scopes: ['operator.admin'] }, remote: { token: 'uclaw' } },
|
||||
commands: { native: 'auto', nativeSkills: 'auto', restart: true, ownerDisplay: 'raw' },
|
||||
meta: { lastTouchedVersion: '2026.3.13', lastTouchedAt: new Date().toISOString() }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user