From 696ab1a752e5bfa520379e21d933be1cd3058ce0 Mon Sep 17 00:00:00 2001 From: Frank Date: Sat, 9 Aug 2025 19:22:50 -0400 Subject: [PATCH] Update moonshot ai provider doc --- .../web/src/content/docs/docs/providers.mdx | 46 +++---------------- 1 file changed, 6 insertions(+), 40 deletions(-) diff --git a/packages/web/src/content/docs/docs/providers.mdx b/packages/web/src/content/docs/docs/providers.mdx index cad9878e..c6455b1d 100644 --- a/packages/web/src/content/docs/docs/providers.mdx +++ b/packages/web/src/content/docs/docs/providers.mdx @@ -546,7 +546,7 @@ To use Kimi K2 from Moonshot AI: 1. Head over to the [Moonshot AI console](https://platform.moonshot.ai/console), create an account, and click **Create API key**. -2. Run `opencode auth login` and select **Other**. +2. Run `opencode auth login` and select **Moonshot AI**. ```bash $ opencode auth login @@ -555,11 +555,11 @@ To use Kimi K2 from Moonshot AI: │ ◆ Select provider │ ... - │ ● Other + │ ● Moonshot AI └ ``` -3. Enter `moonshot` as the provider ID. +3. Enter your Moonshot API key. ```bash $ opencode auth login @@ -567,48 +567,14 @@ To use Kimi K2 from Moonshot AI: ┌ Add credential │ ◇ Select provider - │ Other - │ - ◇ Enter provider id - │ moonshot - └ - ``` - -4. Enter your Moonshot API key. - - ```bash - $ opencode auth login - - ┌ Add credential + │ Moonshot AI │ ◇ Enter your API key - │ sk-... + │ _ └ ``` -5. Configure Moonshot in your opencode config. - - ```json title="opencode.json" ""moonshot"" {5-15} - { - "$schema": "https://opencode.ai/config.json", - "provider": { - "moonshot": { - "npm": "@ai-sdk/openai-compatible", - "name": "Moonshot AI", - "options": { - "baseURL": "https://api.moonshot.ai/v1" - }, - "models": { - "kimi-k2-0711-preview": { - "name": "Kimi K2" - } - } - } - } - } - ``` - -6. Run the `/models` command to select _Kimi K2_. +4. Run the `/models` command to select _Kimi K2_. ---