docs: Trae / Trae CN through magpie, in the start page's FAQ (en, zh, ja)
A user (tz_188, Discord) confirmed Trae works with magpie this way: the gateway's address in Trae's custom model settings, Share on local network (局域网共享) turned on, and a gateway key as the API key. Trae keeps custom models in the Trae account, server-side, so magpie can't set it up in one click, and Trae may not reach 127.0.0.1. The FAQ entry (#trae) says that, hedged as a user report, and links Remote magpie's #share. Run: node --test site/*.test.mjs via mote-run at this tree, 84 of 84 ok. (Run with -C site it is 83 of 84: the sponsors test reads ../README.md, which -C site doesn't copy; not a red.) No Go test reads site/public/docs (pluginrt's tree walk skips site/), so none was run. Not tried: Trae itself; the steps are the reporter's, not reproduced here.
This commit is contained in:
@@ -337,6 +337,15 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
contextWindow: 1000000</pre>
|
||||
</div>
|
||||
<p><code>baseURL</code> に <code>/anthropic</code> は付けません。モデル id は magpie のもの(<code>magpie models</code>)で、<code>models</code> を書くと dsh の既定の一覧が置き換わるので、更新方法の 2 行も残してください。<code>MAGPIE_DS_KEY</code> には DeepSeek のキーではなくゲートウェイのキー(このコンピュータでは <code>magpie</code>)を入れます。export するか、<code>~/.dsh/.env</code> に書くか、dsh のモデルページの DeepSeek 行に入力します。モデルは dsh で選びます。magpie で接続を解除してもこの設定は残ります。magpie には Files API がないため、dsh は画像を毎ターン base64 でインライン送信します。上限は <code>maxInlineRequestImageBytes</code>(既定 20 MiB、上の例では 64 MiB)です。この行では DeepSeek 自身のモデルだけを使ってください。<a href="https://github.com/yetone/magpie/blob/main/docs/reference.md#deepseek-harness-the-deepseek-row-by-hand">詳しくはリファレンスへ</a>。</p>
|
||||
<h3 id="trae">Trae / Trae CN で magpie のモデルを使えますか?</h3>
|
||||
<p>この方法で動いたという報告があります。Trae はカスタムモデルを Trae アカウント(Trae のサーバー側)に保存するため、magpie からワンクリックで設定することはできず、Trae から <code>127.0.0.1</code> に届かないこともあります。手順:</p>
|
||||
<ol>
|
||||
<li>magpie で <span class="ui">設定</span> → <span class="ui">ネットワークと共有</span> → <span class="ui">ローカルネットワークで共有</span> をオンにし、表示される <span class="ui">アドレス</span> を控えます。</li>
|
||||
<li>ゲートウェイキーを用意します(<span class="ui">ゲートウェイ</span> → <span class="ui">ゲートウェイキー</span>、または <code>magpie gateway-key add "Trae"</code>)。</li>
|
||||
<li>Trae のカスタムモデル設定で、アドレスにそのアドレスを、API キーにそのゲートウェイキーを入力します。</li>
|
||||
</ol>
|
||||
<p>モデル id は magpie のもの(<code>magpie models</code>)です。共有をオンにすると、同じネットワークのほかのコンピューターもゲートウェイキーで接続できます。<a href="/docs/ja/remote#share">リモート magpie</a> を参照してください。</p>
|
||||
|
||||
<p style="margin-top:48px">困ったときや、共有したい構成があるときは <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> でどうぞ。ユーザーにすぐ使えるプロバイダを配りたいベンダーの方は <a href="/docs/ja/import">magpie に追加</a> をご覧ください。</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
@@ -337,6 +337,15 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
contextWindow: 1000000</pre>
|
||||
</div>
|
||||
<p><code>baseURL</code> has no <code>/anthropic</code>. The model ids are magpie’s (<code>magpie models</code>), and a <code>models</code> list replaces dsh’s defaults, so keep the two update lines. <code>MAGPIE_DS_KEY</code> holds the gateway key (<code>magpie</code> on this computer), not your DeepSeek key: export it, put it in <code>~/.dsh/.env</code>, or enter it on the DeepSeek row in dsh’s Models page. Pick the model in dsh; Disconnect leaves the entry alone. magpie has no Files API, so dsh sends images inline as base64 each turn, up to <code>maxInlineRequestImageBytes</code> (20 MiB by default, 64 MiB above). Keep the row on DeepSeek’s own models. <a href="https://github.com/yetone/magpie/blob/main/docs/reference.md#deepseek-harness-the-deepseek-row-by-hand">More in the reference</a>.</p>
|
||||
<h3 id="trae">Can Trae or Trae CN use magpie’s models?</h3>
|
||||
<p>Users report that this works. Trae keeps custom models in your Trae account, on its servers, so magpie can’t set it up for you, and Trae may not reach <code>127.0.0.1</code>. So:</p>
|
||||
<ol>
|
||||
<li>In magpie, turn on <span class="ui">Settings</span> → <span class="ui">Network and sharing</span> → <span class="ui">Share on local network</span>, and note the <span class="ui">Address</span> it shows.</li>
|
||||
<li>Take a gateway key (<span class="ui">Gateway</span> → <span class="ui">Gateway keys</span>, or <code>magpie gateway-key add "Trae"</code>).</li>
|
||||
<li>In Trae’s custom model settings, enter that address as the address and the gateway key as the API key.</li>
|
||||
</ol>
|
||||
<p>The model id is magpie’s (<code>magpie models</code>). Sharing lets other computers on your network in with a gateway key; see <a href="/docs/remote#share">Remote magpie</a>.</p>
|
||||
|
||||
<p style="margin-top:48px">Stuck, or have a setup worth sharing? Ask on <a href="https://discord.gg/vGSnD3ZKQF">Discord</a>. Vendors who want to hand their users a ready-made provider: see <a href="/docs/import">Add to magpie</a>.</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
@@ -337,6 +337,15 @@ IP-CIDR6,::1/128,DIRECT,no-resolve</pre>
|
||||
contextWindow: 1000000</pre>
|
||||
</div>
|
||||
<p><code>baseURL</code> 不带 <code>/anthropic</code>。模型 id 用 magpie 的(<code>magpie models</code>);写了 <code>models</code> 就会替换 dsh 的默认列表,所以两行更新方式要保留。<code>MAGPIE_DS_KEY</code> 里放网关密钥(本机是 <code>magpie</code>),不是你的 DeepSeek 密钥:export、写进 <code>~/.dsh/.env</code>,或在 dsh 模型页的 DeepSeek 行填入都行。模型在 dsh 里选;在 magpie 里断开不会动这一项。magpie 没有 Files API,dsh 会把图片按 base64 每轮内联发送,上限是 <code>maxInlineRequestImageBytes</code>(默认 20 MiB,上面设成 64 MiB)。这一行只用 DeepSeek 自己的模型。<a href="https://github.com/yetone/magpie/blob/main/docs/reference.md#deepseek-harness-the-deepseek-row-by-hand">详见参考文档</a>。</p>
|
||||
<h3 id="trae">Trae / Trae CN 能用 magpie 的模型吗?</h3>
|
||||
<p>有用户反馈这样可以用。Trae 把自定义模型存在你的 Trae 账号里(在它的服务器上),所以 magpie 没法一键帮你配好,而且 Trae 不一定连得到 <code>127.0.0.1</code>。做法是:</p>
|
||||
<ol>
|
||||
<li>在 magpie 里打开 <span class="ui">设置</span> → <span class="ui">网络与共享</span> → <span class="ui">局域网共享</span>,记下它显示的 <span class="ui">地址</span>。</li>
|
||||
<li>准备一个网关密钥(<span class="ui">网关</span> → <span class="ui">网关密钥</span>,或 <code>magpie gateway-key add "Trae"</code>)。</li>
|
||||
<li>在 Trae 的自定义模型设置里,地址填这个地址,API 密钥填这个网关密钥。</li>
|
||||
</ol>
|
||||
<p>模型 id 用 magpie 的(<code>magpie models</code>)。打开共享后,局域网里的其他电脑凭网关密钥也能连入;见 <a href="/docs/zh/remote#share">远程 magpie</a>。</p>
|
||||
|
||||
<p style="margin-top:48px">遇到问题,或者有值得分享的配置?来 <a href="https://discord.gg/vGSnD3ZKQF">Discord</a> 聊。想给自己的用户一键添加供应商的厂商,请看 <a href="/docs/zh/import">Add to magpie</a>。</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user