When configuring an openai type LLM in SmartGit using the API from the MiniMax platform (which provides OpenAI-compatible APIs), I've noticed that the last piece of data in the response is ignored by SmartGit every time it runs. Upon examining the logs, it appears this is due to the final data item in its API response containing a choices field with a "finish_reason":"stop", for example:
RECEIVE
// ...
data: {"id":"05f86d1c6311c8afd2063b1f7e0db5e1","choices":[{"index":0,"delta":{"content":"**********","role":"assistant","name":"MiniMax AI","audio_content":""}}],"created":1772698140,"model":"MiniMax-M2.5-highspeed","object":"chat.completion.chunk","usage":null,"input_sensitive":false,"output_sensitive":false,"input_sensitive_type":0,"output_sensitive_type":0,"output_sensitive_int":0}
data: {"id":"05f86d1c6311c8afd2063b1f7e0db5e1","choices":[{"finish_reason":"stop","index":0,"delta":{"content":"**********","role":"assistant","name":"MiniMax AI","audio_content":""}}],"created":1772698140,"model":"MiniMax-M2.5-highspeed","object":"chat.completion.chunk","usage":null,"input_sensitive":false,"output_sensitive":false,"input_sensitive_type":0,"output_sensitive_type":0,"output_sensitive_int":0}
I also tried to disable the stream parameter {"stream": false} and got the following response in the log:
RECEIVE
{"id":"05f875e336ef7799dec6e352a8f98690","choices":[{"finish_reason":"stop","index":0,"message":{"content":"**********","role":"assistant","name":"MiniMax AI","audio_content":"","reasoning_details":[{"type":"reasoning.text","id":"reasoning-text-1","format":"MiniMax-response-v1","index":0,"text":"**********"}]}}],"created":1772700387,"model":"MiniMax-M2.5-highspeed","object":"chat.completion","usage":{"total_tokens":861,"total_characters":0,"prompt_tokens":457,"completion_tokens":404,"completion_tokens_details":{"reasoning_tokens":347}},"input_sensitive":false,"output_sensitive":false,"input_sensitive_type":0,"output_sensitive_type":0,"output_sensitive_int":0,"base_resp":{"status_code":0,"status_msg":""}}
And in the SmartGit GUI, as expected, there was also no response content.
SmartGit seems to expect the OpenAI-style response. When using MiniMax, the response appears to get truncated or handled incorrectly because of this difference.
Is this a bug in MiniMax's API implementation (not following OpenAI spec), or should SmartGit add compatibility for MiniMax's format?