The open source coding agent.
TypeScript
Add Zhipu AI provider
Franka9fbe074081a
diff --git a/packages/web/src/content/docs/docs/providers.mdx b/packages/web/src/content/docs/docs/providers.mdxindex 213c40badf3..00acc5cb92b 100644--- a/packages/web/src/content/docs/docs/providers.mdx+++ b/packages/web/src/content/docs/docs/providers.mdx@@ -796,6 +796,42 @@ https://platform.openai.com/api-keys---+### Zhipu AI++1. Head over to the [Zhipu AI console](https://chat.z.ai/), create an account, navigate to **Manage APIs**, and click **Create a new API key**.++2. Run `opencode auth login` and select **Zhipu AI**.++ ```bash+ $ opencode auth login++ ┌ Add credential+ │+ ◆ Select provider+ │ ● Zhipu AI+ │ ...+ └+ ```++3. Enter your Zhipu AI API key.++ ```bash+ $ opencode auth login++ ┌ Add credential+ │+ ◇ Select provider+ │ Zhipu AI+ │+ ◇ Enter your API key+ │ _+ └+ ```++4. Run the `/models` command to select a model like _GLM-4.5_.++---+## TroubleshootingIf you are having trouble with configuring a provider, check the following: