Spaces:
Running
Running
Update openai-sdk Space README and index.html
Browse files- README.md +2 -0
- index.html +10 -4
README.md
CHANGED
|
@@ -15,4 +15,6 @@ Point any OpenAI-compatible client at Modelflare. Create a key at [modelflare.de
|
|
| 15 |
|
| 16 |
- Full docs: [docs.modelflare.dev](https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide)
|
| 17 |
- Hub landing: [Modelflare/start](https://huggingface.co/spaces/Modelflare/start)
|
|
|
|
|
|
|
| 18 |
- Collection: [Getting Started](https://huggingface.co/collections/Modelflare/modelflare-getting-started)
|
|
|
|
| 15 |
|
| 16 |
- Full docs: [docs.modelflare.dev](https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide)
|
| 17 |
- Hub landing: [Modelflare/start](https://huggingface.co/spaces/Modelflare/start)
|
| 18 |
+
- Coding agents: [Modelflare/coding-agents](https://huggingface.co/spaces/Modelflare/coding-agents)
|
| 19 |
+
- API recipes: [Modelflare/api-recipes](https://huggingface.co/spaces/Modelflare/api-recipes)
|
| 20 |
- Collection: [Getting Started](https://huggingface.co/collections/Modelflare/modelflare-getting-started)
|
index.html
CHANGED
|
@@ -48,6 +48,8 @@
|
|
| 48 |
<div class="cta">
|
| 49 |
<a class="btn primary" href="https://modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">打开控制台领取 API Key</a>
|
| 50 |
<a class="btn ghost" href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">完整文档</a>
|
|
|
|
|
|
|
| 51 |
<a class="btn ghost" href="https://huggingface.co/collections/Modelflare/modelflare-getting-started" target="_blank" rel="noopener">Getting Started 合集</a>
|
| 52 |
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/start" target="_blank" rel="noopener">落地页</a>
|
| 53 |
</div>
|
|
@@ -106,12 +108,13 @@ console.log(r.choices[0].message.content);</code></pre>
|
|
| 106 |
<ul>
|
| 107 |
<li><strong>401</strong>:检查 key 是否完整、是否多了空格;环境变量是否生效。</li>
|
| 108 |
<li><strong>模型不可用</strong>:换到该分组已开通的模型 id,或在控制台换分组。</li>
|
| 109 |
-
<li><strong>图片 / 视频</strong>:同一把 key,但请求字段走原生合约,见文档站 Image / Video 章节。</li>
|
| 110 |
-
<li><strong>Coding agents</strong>:Codex / Claude Code / Gemini CLI
|
| 111 |
</ul>
|
| 112 |
<div class="note">
|
| 113 |
<strong>从 Hub 来的访客:</strong>注册后即可在控制台看价、开 key、看用量。
|
| 114 |
可互动 Chat Demo 需 Hugging Face PRO 后上线;现在请用控制台与 API 试用。
|
|
|
|
| 115 |
</div>
|
| 116 |
</section>
|
| 117 |
|
|
@@ -121,6 +124,8 @@ console.log(r.choices[0].message.content);</code></pre>
|
|
| 121 |
<div class="cta">
|
| 122 |
<a class="btn primary" href="https://modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">Open Console → Get API Key</a>
|
| 123 |
<a class="btn ghost" href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">Docs</a>
|
|
|
|
|
|
|
| 124 |
<a class="btn ghost" href="https://huggingface.co/collections/Modelflare/modelflare-getting-started" target="_blank" rel="noopener">Getting Started collection</a>
|
| 125 |
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/start" target="_blank" rel="noopener">Landing</a>
|
| 126 |
</div>
|
|
@@ -179,12 +184,13 @@ console.log(r.choices[0].message.content);</code></pre>
|
|
| 179 |
<ul>
|
| 180 |
<li><strong>401</strong>: key truncated / whitespace / env not loaded.</li>
|
| 181 |
<li><strong>Model unavailable</strong>: switch to an id enabled on that group, or change groups in the console.</li>
|
| 182 |
-
<li><strong>Image / video</strong>: same key, native request fields — see Image / Video docs.</li>
|
| 183 |
-
<li><strong>Coding agents</strong>: Codex / Claude Code / Gemini CLI
|
| 184 |
</ul>
|
| 185 |
<div class="note">
|
| 186 |
<strong>HF visitors:</strong> sign up on the console for pricing, keys, and usage.
|
| 187 |
Interactive Chat Spaces need HF PRO; use the console + API for now.
|
|
|
|
| 188 |
</div>
|
| 189 |
</section>
|
| 190 |
</div>
|
|
|
|
| 48 |
<div class="cta">
|
| 49 |
<a class="btn primary" href="https://modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">打开控制台领取 API Key</a>
|
| 50 |
<a class="btn ghost" href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">完整文档</a>
|
| 51 |
+
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/coding-agents" target="_blank" rel="noopener">Coding Agents</a>
|
| 52 |
+
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/api-recipes" target="_blank" rel="noopener">API Recipes</a>
|
| 53 |
<a class="btn ghost" href="https://huggingface.co/collections/Modelflare/modelflare-getting-started" target="_blank" rel="noopener">Getting Started 合集</a>
|
| 54 |
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/start" target="_blank" rel="noopener">落地页</a>
|
| 55 |
</div>
|
|
|
|
| 108 |
<ul>
|
| 109 |
<li><strong>401</strong>:检查 key 是否完整、是否多了空格;环境变量是否生效。</li>
|
| 110 |
<li><strong>模型不可用</strong>:换到该分组已开通的模型 id,或在控制台换分组。</li>
|
| 111 |
+
<li><strong>图片 / 视频</strong>:同一把 key,但请求字段走原生合约,见 <a href="https://huggingface.co/spaces/Modelflare/api-recipes">api-recipes</a> 与文档站 Image / Video 章节。</li>
|
| 112 |
+
<li><strong>Coding agents</strong>:Codex / Claude Code / Gemini CLI 见 <a href="https://huggingface.co/spaces/Modelflare/coding-agents">coding-agents</a> Space。</li>
|
| 113 |
</ul>
|
| 114 |
<div class="note">
|
| 115 |
<strong>从 Hub 来的访客:</strong>注册后即可在控制台看价、开 key、看用量。
|
| 116 |
可互动 Chat Demo 需 Hugging Face PRO 后上线;现在请用控制台与 API 试用。
|
| 117 |
+
更多配方:<a href="https://huggingface.co/spaces/Modelflare/api-recipes">api-recipes</a>。
|
| 118 |
</div>
|
| 119 |
</section>
|
| 120 |
|
|
|
|
| 124 |
<div class="cta">
|
| 125 |
<a class="btn primary" href="https://modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">Open Console → Get API Key</a>
|
| 126 |
<a class="btn ghost" href="https://docs.modelflare.dev/?utm_source=huggingface&utm_medium=space&utm_campaign=sdk_guide" target="_blank" rel="noopener">Docs</a>
|
| 127 |
+
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/coding-agents" target="_blank" rel="noopener">Coding Agents</a>
|
| 128 |
+
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/api-recipes" target="_blank" rel="noopener">API Recipes</a>
|
| 129 |
<a class="btn ghost" href="https://huggingface.co/collections/Modelflare/modelflare-getting-started" target="_blank" rel="noopener">Getting Started collection</a>
|
| 130 |
<a class="btn ghost" href="https://huggingface.co/spaces/Modelflare/start" target="_blank" rel="noopener">Landing</a>
|
| 131 |
</div>
|
|
|
|
| 184 |
<ul>
|
| 185 |
<li><strong>401</strong>: key truncated / whitespace / env not loaded.</li>
|
| 186 |
<li><strong>Model unavailable</strong>: switch to an id enabled on that group, or change groups in the console.</li>
|
| 187 |
+
<li><strong>Image / video</strong>: same key, native request fields — see <a href="https://huggingface.co/spaces/Modelflare/api-recipes">api-recipes</a> and Image / Video docs.</li>
|
| 188 |
+
<li><strong>Coding agents</strong>: Codex / Claude Code / Gemini CLI → <a href="https://huggingface.co/spaces/Modelflare/coding-agents">coding-agents</a> Space.</li>
|
| 189 |
</ul>
|
| 190 |
<div class="note">
|
| 191 |
<strong>HF visitors:</strong> sign up on the console for pricing, keys, and usage.
|
| 192 |
Interactive Chat Spaces need HF PRO; use the console + API for now.
|
| 193 |
+
More recipes: <a href="https://huggingface.co/spaces/Modelflare/api-recipes">api-recipes</a>.
|
| 194 |
</div>
|
| 195 |
</section>
|
| 196 |
</div>
|