mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
Docs: fix Moonshot sync markers (#6789)
* Docs: fix Moonshot sync markers * Docs: use MDX comment markers for Moonshot sync * Docs: use markdown comment markers for Moonshot sync * Docs: hide Moonshot sync markers in MDX
This commit is contained in:
@@ -133,14 +133,17 @@ Moonshot uses OpenAI-compatible endpoints, so configure it as a custom provider:
|
|||||||
- Provider: `moonshot`
|
- Provider: `moonshot`
|
||||||
- Auth: `MOONSHOT_API_KEY`
|
- Auth: `MOONSHOT_API_KEY`
|
||||||
- Example model: `moonshot/kimi-k2.5`
|
- Example model: `moonshot/kimi-k2.5`
|
||||||
- Kimi K2 model IDs:
|
|
||||||
{/_ moonshot-kimi-k2-model-refs:start _/}
|
Kimi K2 model IDs:
|
||||||
- `moonshot/kimi-k2.5`
|
|
||||||
- `moonshot/kimi-k2-0905-preview`
|
{/_ moonshot-kimi-k2-model-refs:start _/ && null}
|
||||||
- `moonshot/kimi-k2-turbo-preview`
|
|
||||||
- `moonshot/kimi-k2-thinking`
|
- `moonshot/kimi-k2.5`
|
||||||
- `moonshot/kimi-k2-thinking-turbo`
|
- `moonshot/kimi-k2-0905-preview`
|
||||||
{/_ moonshot-kimi-k2-model-refs:end _/}
|
- `moonshot/kimi-k2-turbo-preview`
|
||||||
|
- `moonshot/kimi-k2-thinking`
|
||||||
|
- `moonshot/kimi-k2-thinking-turbo`
|
||||||
|
{/_ moonshot-kimi-k2-model-refs:end _/ && null}
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,14 +15,14 @@ Kimi Coding with `kimi-coding/k2p5`.
|
|||||||
|
|
||||||
Current Kimi K2 model IDs:
|
Current Kimi K2 model IDs:
|
||||||
|
|
||||||
{/_ moonshot-kimi-k2-ids:start _/}
|
{/_ moonshot-kimi-k2-ids:start _/ && null}
|
||||||
|
|
||||||
- `kimi-k2.5`
|
- `kimi-k2.5`
|
||||||
- `kimi-k2-0905-preview`
|
- `kimi-k2-0905-preview`
|
||||||
- `kimi-k2-turbo-preview`
|
- `kimi-k2-turbo-preview`
|
||||||
- `kimi-k2-thinking`
|
- `kimi-k2-thinking`
|
||||||
- `kimi-k2-thinking-turbo`
|
- `kimi-k2-thinking-turbo`
|
||||||
{/_ moonshot-kimi-k2-ids:end _/}
|
{/_ moonshot-kimi-k2-ids:end _/ && null}
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
openclaw onboard --auth-choice moonshot-api-key
|
openclaw onboard --auth-choice moonshot-api-key
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ async function syncMoonshotDocs() {
|
|||||||
let moonshotText = await readFile(moonshotDoc, "utf8");
|
let moonshotText = await readFile(moonshotDoc, "utf8");
|
||||||
moonshotText = replaceBlockLines(
|
moonshotText = replaceBlockLines(
|
||||||
moonshotText,
|
moonshotText,
|
||||||
"<!-- moonshot-kimi-k2-ids:start -->",
|
"{/_ moonshot-kimi-k2-ids:start _/ && null}",
|
||||||
"<!-- moonshot-kimi-k2-ids:end -->",
|
"{/_ moonshot-kimi-k2-ids:end _/ && null}",
|
||||||
renderKimiK2Ids(""),
|
renderKimiK2Ids(""),
|
||||||
);
|
);
|
||||||
moonshotText = replaceBlockLines(
|
moonshotText = replaceBlockLines(
|
||||||
@@ -110,8 +110,8 @@ async function syncMoonshotDocs() {
|
|||||||
let conceptsText = await readFile(conceptsDoc, "utf8");
|
let conceptsText = await readFile(conceptsDoc, "utf8");
|
||||||
conceptsText = replaceBlockLines(
|
conceptsText = replaceBlockLines(
|
||||||
conceptsText,
|
conceptsText,
|
||||||
"<!-- moonshot-kimi-k2-model-refs:start -->",
|
"{/_ moonshot-kimi-k2-model-refs:start _/ && null}",
|
||||||
"<!-- moonshot-kimi-k2-model-refs:end -->",
|
"{/_ moonshot-kimi-k2-model-refs:end _/ && null}",
|
||||||
renderKimiK2Ids("moonshot/"),
|
renderKimiK2Ids("moonshot/"),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user