Great question — answering as the UphillTech team:
If the model doesn’t appear, it usually means that it cannot be found. I'm not sure if OpenAI provides Z-AI models (actually, first time I hear about them, but anyway). You can use OpenRouter as a provider. They have all sorts of models. Basically, they just route the models they have registered from other providers, so if you see some well-known model, it will certainly be on OpenRouter. Here's GLM 4.6 's page on OpenRouter. I guess, this config will work for that model: name: Local Agent version: 1.0.0 schema: v1 models: - name: "ZGLM 4.6" provider: openrouter model: z-ai/glm-4.6 # Pasted from OpenRouter site apiBase: "https://api.z.ai/api/coding/paas/v4" # Not sure of that one apiKey:...
Full answer by Soucelover: https://stackoverflow.stackexchange.com/a/79801733 (CC BY-SA 4.0).
Want it for your business? UphillTech.