r/GithubCopilot • u/Derrmanson • Nov 02 '26
General 400 invalid temperature, some Kimi models. In GHCP Jetbrains plugin
Using GHCP in Phpstorm. I have several Kimi models set up. kimi-k3 works. Using either 2.7 or the new 3.1 gives me the '400 invalid temperature: only 1 is allowed for this model' I dont find any temperature settings in the plugin's settings. I am using the https://api.moonshot.ai url.
Edit: nope... this 'fix' only worked a few times, like 4 or 5 prompts. Now it's back to k3 only,
Fixed: Add a custom request header.

3
Upvotes
3
u/CreativeSympathy8293 Nov 03 '26
For the 3.1 entry, first check the exact model ID. Moonshot’s current quickstart uses `kimi-k3.1-pro` and sends no `temperature` field:
https://platform.kimi.ai/docs/get-your-api-key
Try that minimal sample with a harmless prompt. If it succeeds but the plugin fails with the same model ID, you have a useful comparison for a plugin bug report. Include the plugin version, exact model ID and error; if request diagnostics expose the outgoing temperature, include that value too. Redact keys and private code.
I haven’t verified a JetBrains temperature override, so I can’t give you a settings path. This comparison would narrow the failure rather than establish a fix.
AI-assisted from the provider docs; I haven’t reproduced it.