Debugging adding new LLM

Anyone managed to get DeepSeek API working? I’m trying to figure out the right incantation to get it to work with Discourse.

I have it working in Open WebUI and other clients.