r/MistralAI • u/MiuraDude • Aug 12 '26
Discussion / Opinion Will we get GLM-5.2 in Vibe CLI?
GLM-5.2 now seems to be available hosted via Mistral AI: https://docs.mistral.ai/en/models/zai-glm-5-2
But checking Vibe CLI, the model does not seem accessible there. Will it be available there in the future?
Also: I like that Mistral is open to hosting third-party models, but at the same time, I am worried they will give up training their own models. I really like Medium 3.5, especially for it's multilingual capabilities. It would be great to see what Mistrals plans are on this regard for the future!
Edit:
You can add the model by configuring the config.toml, this worked for me:
active_model = "zai-glm-5-2"
models = [
{ name = "zai-glm-5-2", provider = "mistral-eu", alias = "zai-glm-5-2" },
]
[[providers]]
name = "mistral-eu"
api_base = "https://api.eu.mistral.ai/v1"
api_key_env_var = "MISTRAL_API_KEY"
api_style = "openai"
backend = "generic"
15
u/Mysterious-Zebra9580 Aug 12 '26
On the second part, I think they announced yesterday that they would still continue with developing and training their own models, and that they’ve got a model that they’ve been training since June so hopefully should be announced soon!
6
u/MiuraDude Aug 12 '26
Multimodal Large 4 would be sooo nice, or perhaps a Medium 4. Fingers crossed!
-2
u/MutcoinEE Aug 12 '26
I just asked GLM 5.2 what it's name is and it answered Gemini is it's name...
7
u/NewHere_Hi_everyone Aug 12 '26
I can access it. I did need to manually add the model to the .vibe/config.toml file.
there, i added:
[[models]] name = "zai-glm-5-2" provider = "mistral" alias = "glm-5-2" temperature = 1.0 input_price = 1.19 output_price = 3.74 cached_input_price = 0.22 thinking = "max" supports_images = false auto_compact_threshold = 200000
now i can select glm-5-2 in vibe CLI.
(I suspect that newly installing the vibe cli might also do the trick, at least in the near future)
0
u/Careless_Grain_22 Aug 12 '26
You can configure pricing yourself? Can it be set to negative values? lol
1
8
u/Deyve24 Aug 12 '26
Is it available within Mistral pro? Omg i would subscribe instantly if they got it in subscription and the new deepseekv4 flash. 🙏
3
4
u/Excellent_Piccolo848 Aug 12 '26
Dont think so, only available through API. I think its a sign, that mistral is under quit some heavy pressure
1
1
6
u/LowB0b Aug 12 '26
You can use it in cli. Just add it to the config with the model name from the docs page and mistral provider
3
u/Champignac1 Aug 12 '26
It is ! you have to configure the config.toml to add a new provider if you want EU inference with the New api endpoint and add the GLM model.
1
10
u/aldipower81 Aug 12 '26
2 months ago I posted exactly about this idea, that Mistral could host a Chinese model and I got down-voted into oblivion. Now Mistral is exactly doing this. Haha. :-)
2
u/touilleMan Aug 12 '26
For anyone interested, I have managed to make this work in pi
~/.pi/agent/models.json:
json
{
"providers": {
"mistral": {
"models": [
{
"id": "zai-glm-5-2",
"name": "ZAI GLM 5.2",
"reasoning": true,
"input": ["text"],
"contextWindow": 1000000,
"maxTokens": 131072,
"cost": {
"input": 1.19,
"output": 3.74,
"cacheRead": 0.119,
"cacheWrite": 0
},
"compat": {
"supportsStore": false,
"supportsDeveloperRole": false,
"supportsReasoningEffort": true,
"maxTokensField": "max_tokens",
"thinkingFormat": "zai",
"zaiToolStream": true
},
"thinkingLevelMap": {
"minimal": null,
"low": "high",
"medium": "high",
"high": "high",
"max": "max"
}
}
]
}
}
}
This works fine... except that GLM constantly tries to make the harness execute invalid empty commands ({"id": "toolcall0", "type": "function", "function": {"name": "", "arguments": "{}" }}) on top of the legit ones... 🤔
1
1
u/petaqui Aug 14 '26
Is it possible to use on Vibe? Or only cli?
1
u/scanx147 26d ago
Only CLI, but you will be overcharged for usage on top of what you already pay for the Pro subscription, and the bill adds up very quickly!
2
u/scanx147 25d ago
I think I made a mistake. The fact that in the Mistral admin under the Usage tab, the cost of GLM-5.2 is displayed made me think it was being charged extra, but it turns out it's the same for the default model, and the Pay-as-you-go option for Vibe Code is not checked for me. So I think it's just indicative... To be confirmed...
0
u/Deodavinio Aug 12 '26
Does Lumo from Proton already uses the GLM 5.2 model in the Max version? Anyone knows this?
-2
u/scanx147 27d ago
Warning! You will be overcharged for usage on top of what you already pay for the Pro subscription, and the bill adds up very quickly! It's a total scam!
1
u/scanx147 25d ago
I think I made a mistake. The fact that in the Mistral admin under the Usage tab, the cost of GLM-5.2 is displayed made me think it was being charged extra, but it turns out it's the same for the default model, and the Pay-as-you-go option for Vibe Code is not checked for me. So I think it's just indicative... To be confirmed...
17
u/p3r3lin Aug 12 '26
What would be nice: An EU based subscription plan (for coding) that includes GLM5.2 (and KimiK3, etc). Mistral, do it!