Skip to content

Instantly share code, notes, and snippets.

@malikbenkirane
Created March 28, 2026 10:28
Show Gist options
  • Select an option

  • Save malikbenkirane/e7fb187d78bdc2c54520b5f3b4253161 to your computer and use it in GitHub Desktop.

Select an option

Save malikbenkirane/e7fb187d78bdc2c54520b5f3b4253161 to your computer and use it in GitHub Desktop.
{
"$schema": "https://opencode.ai/config.json",
"model": "google-vertex/zai-org/glm-5-maas",
"provider": {
"google-vertex": {
"models": {
"zai-org/glm-5-maas": {
"name": "GLM-5",
"provider": {
"npm": "@ai-sdk/openai-compatible",
"api": "https://${VERTEX_ENDPOINT}/v1/projects/${GOOGLE_CLOUD_PROOJECT}/locations/${VERTEX_LOCATION}/endpoints/openapi"
},
"limit": {
"context": 204800,
"output": 131072
},
"cost": {
"input": 0.6,
"output": 2.2
},
"interleaved": {
"field": "reasoning_content"
},
"attachment": false,
"reasoning": true,
"family": "glm",
"temperature": true,
"tool_call": true,
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
}
}
}
}
},
"permission": {
"bash": "allow"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment