Minimax plugin returns "No choices in response" despite valid API base and credentials #780

Closed
opened 2026-02-16 10:20:29 -05:00 by yindo · 1 comment
Owner

Originally created by @emuchogu on GitHub (Nov 5, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When configuring the Minimax plugin from here:
https://marketplace.dify.ai/plugins/langgenius/minimax?source=http%253A%252F%252Fbizwiz-suse.lab&theme=system

I receive the following error in Dify:
No choices in response

API Base used:
https://api.minimaxi.com

Using Python with the same credentials works without issues:

import os

os.environ['ANTHROPIC_BASE_URL'] = 'https://api.minimax.io/anthropic'
os.environ['ANTHROPIC_API_KEY'] = 'eyJhbGci......'

I obtained my API key from:
https://platform.minimax.io/login

instead of:
https://platform.minimaxi.com/login?redirect=%2Fuser-center%2Fbasic-information%2Finterface-key

because I do not have a Chinese phone number to register.

Note: setting the API base to https://api.minimax.io also fails in the Dify plugin with the same error.

✔️ Expected Behavior

Should add minimax model provider

Actual Behavior

Fails with alert:
No choices in response

Originally created by @emuchogu on GitHub (Nov 5, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When configuring the Minimax plugin from here: https://marketplace.dify.ai/plugins/langgenius/minimax?source=http%253A%252F%252Fbizwiz-suse.lab&theme=system I receive the following error in Dify: **No choices in response** API Base used: https://api.minimaxi.com Using Python with the same credentials works without issues: import os os.environ['ANTHROPIC_BASE_URL'] = 'https://api.minimax.io/anthropic' os.environ['ANTHROPIC_API_KEY'] = 'eyJhbGci......' I obtained my API key from: https://platform.minimax.io/login instead of: https://platform.minimaxi.com/login?redirect=%2Fuser-center%2Fbasic-information%2Finterface-key because I do not have a Chinese phone number to register. Note: setting the API base to `https://api.minimax.io` also fails in the Dify plugin with the same error. ### ✔️ Expected Behavior Should add minimax model provider ### ❌ Actual Behavior Fails with alert: No choices in response
yindo added the bug label 2026-02-16 10:20:29 -05:00
yindo closed this issue 2026-02-16 10:20:29 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 5, 2025):

Hi @emuchogu! I'm Dosu and I’m helping the dify team.

The "No choices in response" error from the Minimax plugin usually means the plugin didn't find a choices field in the API response. The plugin's code explicitly checks for this field and raises this error if it's missing. This is a common issue with OpenAI-compatible plugins in Dify: they expect the response to strictly follow the OpenAI schema, including a top-level choices array with message content. If the Minimax API returns a different structure, or if your account/subscription doesn't allow text LLM calls (for example, if you only have TTS credits), you'll get this error—even if your API key works in Python for other endpoints or models.

Some users have found that new free Minimax accounts may have a small balance for text model requests, but audio-only or zero-balance accounts will fail with "No choices in response" when the plugin tries to validate credentials or call the text LLM. You can confirm this by checking your Minimax account balance and subscription type, and by inspecting the raw API response (e.g., via logs or Postman) to see if it contains the expected choices field or an error message like "Insufficient Balance" citation.

If your API responses are valid and contain choices but the plugin still fails, it's possible the response format differs slightly from what the plugin expects. In that case, you may need to patch the plugin to handle the actual response structure, or log the full response for debugging citation.

Other possible causes include stricter timeout and credential validation logic in recent Dify versions, or network issues in Docker setups. Checking plugin daemon and Docker logs can help pinpoint the problem citation.

In summary: double-check your Minimax account's subscription/balance for text LLM usage, inspect the actual API response for the choices field, and review plugin logs for more details. If the API response format is different, the plugin may need to be updated to handle it.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 5, 2025): <!-- Greeting --> Hi @emuchogu! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify team. <!-- Answer --> The "No choices in response" error from the Minimax plugin usually means the plugin didn't find a `choices` field in the API response. The plugin's code explicitly checks for this field and raises this error if it's missing. This is a common issue with OpenAI-compatible plugins in Dify: they expect the response to strictly follow the OpenAI schema, including a top-level `choices` array with message content. If the Minimax API returns a different structure, or if your account/subscription doesn't allow text LLM calls (for example, if you only have TTS credits), you'll get this error—even if your API key works in Python for other endpoints or models. Some users have found that new free Minimax accounts may have a small balance for text model requests, but audio-only or zero-balance accounts will fail with "No choices in response" when the plugin tries to validate credentials or call the text LLM. You can confirm this by checking your Minimax account balance and subscription type, and by inspecting the raw API response (e.g., via logs or Postman) to see if it contains the expected `choices` field or an error message like "Insufficient Balance" [citation](https://github.com/langgenius/dify-official-plugins/issues/1217). If your API responses are valid and contain `choices` but the plugin still fails, it's possible the response format differs slightly from what the plugin expects. In that case, you may need to patch the plugin to handle the actual response structure, or log the full response for debugging [citation](https://github.com/langgenius/dify-official-plugins/issues/882). Other possible causes include stricter timeout and credential validation logic in recent Dify versions, or network issues in Docker setups. Checking plugin daemon and Docker logs can help pinpoint the problem [citation](https://github.com/langgenius/dify-official-plugins/issues/1542). In summary: double-check your Minimax account's subscription/balance for text LLM usage, inspect the actual API response for the `choices` field, and review plugin logs for more details. If the API response format is different, the plugin may need to be updated to handle it. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d7e28e52-2aba-4d27-9117-e80a6a9a0bab?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/27882)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#780