feat(MiniMax): Add MiniMax LLM provider with JSON truncation recovery (closes #8) - #19
Open
Mehdi-Ali wants to merge 4 commits into
Open
feat(MiniMax): Add MiniMax LLM provider with JSON truncation recovery (closes #8)#19Mehdi-Ali wants to merge 4 commits into
Mehdi-Ali wants to merge 4 commits into
Conversation
…support Add Translate Entire Blueprint toolbar command for batch translation Add full support for Blueprint-level variables, local variables, and component overrides Add ClassItSelf graph type for class structure generation Improve Map key type extraction from Blueprint pin types Enhance component parent-child relationship detection Expand CodeGen_CPP.md with detailed guidance Update README with new features and improvements Fix compilation error: remove incorrect return statement in SaveGraphFilesOriginal
- Added MiniMax as a new LLM provider (OpenAI-compatible API) - Supports custom endpoint, model name, and API key configuration - Handles reasoning model output (strips <think> tags) for JSON parsing - Added settings: endpoint, model, API key in N2CSettings - Secure API key storage via N2CUserSecrets - New N2CMiniMaxService and N2CMiniMaxResponseParser Co-Authored-By: Claude <noreply@anthropic.com>
N2CResponseParserBase: Add FindTruncationPointWithStrings() doing forward scan tracking both brace depth AND string state to find valid truncation points when MiniMax cuts mid-string. Update TryRecoverTruncatedJson with 60% threshold, string-aware fallback, and odd quote-count repair. N2CLLMTypes: Increase TimeoutSeconds from 120 to 300 for large graphs. N2CMiniMaxService: Set max_tokens=16384. N2CMiniMaxResponseParser: Improve parse error logging. N2CEditorIntegration / N2CNodeTranslator: Minor enhancements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Depends On
This PR builds on and supersedes #8 (MiniMax provider foundation).
Changes
N2CMiniMaxServiceprovider implementation