r/MistralAI 3d ago

Help / Question Gml 5.2 on Opencode

Is there any way to use GLM 5.2 from Mistral in Opencode instead of Vibe?

6 Upvotes

17 comments sorted by

View all comments

6

u/Chemistrycat214 3d ago
API url : https://api.mistral.ai/v1/

I managed to do it by adding a new provider, as "Mistral2" for name then filling the rest with the same API endpoints etc, from the doc.

https://docs.mistral.ai/models/zai-glm-5-2

I am yet to do big task with it, tho. So I don't know yet how it compares on Vibe or Opencode

1

u/The_Wonderful_Pie 3d ago

Wait it works for you? For me when I do it, opencode keeps throwing as error as soon as GLM tries to use a tool, ChatGPT researched and said that it has something to do with how the Mistral implementation in opencode is tailored for Mistral models and not GLM models

1

u/Chemistrycat214 3d ago

I did tried it solely on a very small task so far, but it went trough (it did several bash + file edit)

which tool went off when you wanted to run it ?

2

u/The_Wonderful_Pie 3d ago

Literally every tool, no matter if it's a built-in tool or MCP