Skip to content

Commit a9fbe07

Browse files
author
Frank
committed
Add Zhipu AI provider
1 parent 0ae213e commit a9fbe07

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎packages/web/src/content/docs/docs/providers.mdx‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,42 @@ https://platform.openai.com/api-keys
796796
797797
---
798798
799+
### Zhipu AI
800+
801+
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**.
802+
803+
2. Run `opencode auth login` and select **Zhipu AI**.
804+
805+
```bash
806+
$ opencode auth login
807+
808+
┌ Add credential
809+
│
810+
◆ Select provider
811+
│ ● Zhipu AI
812+
│ ...
813+
└
814+
```
815+
816+
3. Enter your Zhipu AI API key.
817+
818+
```bash
819+
$ opencode auth login
820+
821+
┌ Add credential
822+
│
823+
◇ Select provider
824+
│ Zhipu AI
825+
│
826+
◇ Enter your API key
827+
│ _
828+
└
829+
```
830+
831+
4. Run the `/models` command to select a model like _GLM-4.5_.
832+
833+
---
834+
799835
## Troubleshooting
800836
801837
If you are having trouble with configuring a provider, check the following:

0 commit comments

Comments
 (0)