This commit is contained in:
salmanap 2025-09-30 19:24:35 +00:00
parent 9efac899c8
commit edded34d4f
2 changed files with 98 additions and 1 deletions

View file

@ -601,6 +601,101 @@ Any provider that implements the OpenAI API interface can be configured using cu
</span></code></pre></div>
</div>
</section>
<section id="moonshot-ai">
<h3>Moonshot AI<a @click.prevent="window.navigator.clipboard.writeText($el.href); $el.setAttribute('data-tooltip', 'Copied!'); setTimeout(() =&gt; $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#moonshot-ai" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#moonshot-ai'"><svg height="1em" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></a></h3>
<p><strong>Provider Prefix:</strong> <code class="docutils literal notranslate"><span class="pre">moonshotai/</span></code></p>
<p><strong>API Endpoint:</strong> <code class="docutils literal notranslate"><span class="pre">/v1/chat/completions</span></code></p>
<p><strong>Authentication:</strong> API Key - Get your Moonshot AI API key from <a class="reference external" href="https://platform.moonshot.ai/" rel="nofollow noopener">Moonshot AI Platform<svg fill="currentColor" height="1em" stroke="none" viewbox="0 96 960 960" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M188 868q-11-11-11-28t11-28l436-436H400q-17 0-28.5-11.5T360 336q0-17 11.5-28.5T400 296h320q17 0 28.5 11.5T760 336v320q0 17-11.5 28.5T720 696q-17 0-28.5-11.5T680 656V432L244 868q-11 11-28 11t-28-11Z"></path></svg></a>.</p>
<p><strong>Supported Chat Models:</strong> All Moonshot AI chat models including Kimi K2, Moonshot v1, and all future releases.</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 30.0%"/>
<col style="width: 20.0%"/>
<col style="width: 50.0%"/>
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Model Name</p></th>
<th class="head"><p>Model ID for Config</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>Kimi K2 Preview</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">moonshotai/kimi-k2-0905-preview</span></code></p></td>
<td><p>Foundation model optimized for agentic tasks with 32B activated parameters</p></td>
</tr>
<tr class="row-odd"><td><p>Moonshot v1 32K</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">moonshotai/moonshot-v1-32k</span></code></p></td>
<td><p>Extended context model with 32K tokens</p></td>
</tr>
<tr class="row-even"><td><p>Moonshot v1 128K</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">moonshotai/moonshot-v1-128k</span></code></p></td>
<td><p>Long context model with 128K tokens</p></td>
</tr>
</tbody>
</table>
<p><strong>Configuration Examples:</strong></p>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><code><span id="line-1"><span class="nt">llm_providers</span><span class="p">:</span>
</span><span id="line-2"><span class="w"> </span><span class="c1"># Latest K2 models for agentic tasks</span>
</span><span id="line-3"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">moonshotai/kimi-k2-0905-preview</span>
</span><span id="line-4"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$MOONSHOTAI_API_KEY</span>
</span><span id="line-5">
</span><span id="line-6"><span class="w"> </span><span class="c1"># V1 models with different context lengths</span>
</span><span id="line-7"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">moonshotai/moonshot-v1-32k</span>
</span><span id="line-8"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$MOONSHOTAI_API_KEY</span>
</span><span id="line-9">
</span><span id="line-10"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">moonshotai/moonshot-v1-128k</span>
</span><span id="line-11"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$MOONSHOTAI_API_KEY</span>
</span></code></pre></div>
</div>
</section>
<section id="zhipu-ai">
<h3>Zhipu AI<a @click.prevent="window.navigator.clipboard.writeText($el.href); $el.setAttribute('data-tooltip', 'Copied!'); setTimeout(() =&gt; $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#zhipu-ai" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#zhipu-ai'"><svg height="1em" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></a></h3>
<p><strong>Provider Prefix:</strong> <code class="docutils literal notranslate"><span class="pre">zhipu/</span></code></p>
<p><strong>API Endpoint:</strong> <code class="docutils literal notranslate"><span class="pre">/api/paas/v4/chat/completions</span></code></p>
<p><strong>Authentication:</strong> API Key - Get your Zhipu AI API key from <a class="reference external" href="https://open.bigmodel.cn/console/overview/" rel="nofollow noopener">Zhipu AI Platform<svg fill="currentColor" height="1em" stroke="none" viewbox="0 96 960 960" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M188 868q-11-11-11-28t11-28l436-436H400q-17 0-28.5-11.5T360 336q0-17 11.5-28.5T400 296h320q17 0 28.5 11.5T760 336v320q0 17-11.5 28.5T720 696q-17 0-28.5-11.5T680 656V432L244 868q-11 11-28 11t-28-11Z"></path></svg></a>.</p>
<p><strong>Supported Chat Models:</strong> All Zhipu AI GLM models including GLM-4, GLM-4 Flash, and all future releases.</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 30.0%"/>
<col style="width: 20.0%"/>
<col style="width: 50.0%"/>
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>Model Name</p></th>
<th class="head"><p>Model ID for Config</p></th>
<th class="head"><p>Description</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>GLM-4.6</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">zhipu/glm-4.6</span></code></p></td>
<td><p>Latest and most capable GLM model with enhanced reasoning abilities</p></td>
</tr>
<tr class="row-odd"><td><p>GLM-4.5</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">zhipu/glm-4.5</span></code></p></td>
<td><p>High-performance model with multimodal capabilities</p></td>
</tr>
<tr class="row-even"><td><p>GLM-4.5 Air</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">zhipu/glm-4.5-air</span></code></p></td>
<td><p>Lightweight and fast model optimized for efficiency</p></td>
</tr>
</tbody>
</table>
<p><strong>Configuration Examples:</strong></p>
<div class="highlight-yaml notranslate"><div class="highlight"><pre><span></span><code><span id="line-1"><span class="nt">llm_providers</span><span class="p">:</span>
</span><span id="line-2"><span class="w"> </span><span class="c1"># Latest GLM models</span>
</span><span id="line-3"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">zhipu/glm-4.6</span>
</span><span id="line-4"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$ZHIPU_API_KEY</span>
</span><span id="line-5">
</span><span id="line-6"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">zhipu/glm-4.5</span>
</span><span id="line-7"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$ZHIPU_API_KEY</span>
</span><span id="line-8">
</span><span id="line-9"><span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">model</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">zhipu/glm-4.5-air</span>
</span><span id="line-10"><span class="w"> </span><span class="nt">access_key</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">$ZHIPU_API_KEY</span>
</span></code></pre></div>
</div>
</section>
</section>
<section id="providers-requiring-base-url">
<h2>Providers Requiring Base URL<a @click.prevent="window.navigator.clipboard.writeText($el.href); $el.setAttribute('data-tooltip', 'Copied!'); setTimeout(() =&gt; $el.setAttribute('data-tooltip', 'Copy link to this element'), 2000)" aria-label="Copy link to this element" class="headerlink" data-tooltip="Copy link to this element" href="#providers-requiring-base-url" x-intersect.margin.0%.0%.-70%.0%="activeSection = '#providers-requiring-base-url'"><svg height="1em" viewbox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></a></h2>
@ -763,6 +858,8 @@ Any provider that implements the OpenAI API interface can be configured using cu
<li><a :data-current="activeSection === '#google-gemini'" class="reference internal" href="#google-gemini">Google Gemini</a></li>
<li><a :data-current="activeSection === '#together-ai'" class="reference internal" href="#together-ai">Together AI</a></li>
<li><a :data-current="activeSection === '#xai'" class="reference internal" href="#xai">xAI</a></li>
<li><a :data-current="activeSection === '#moonshot-ai'" class="reference internal" href="#moonshot-ai">Moonshot AI</a></li>
<li><a :data-current="activeSection === '#zhipu-ai'" class="reference internal" href="#zhipu-ai">Zhipu AI</a></li>
</ul>
</li>
<li><a :data-current="activeSection === '#providers-requiring-base-url'" class="reference internal" href="#providers-requiring-base-url">Providers Requiring Base URL</a><ul>