Skip to content

feat(MiniMax): Add MiniMax LLM provider with JSON truncation recovery (closes #8) - #19

Open
Mehdi-Ali wants to merge 4 commits into
protospatial:mainfrom
Mehdi-Ali:myNodeToCode
Open

feat(MiniMax): Add MiniMax LLM provider with JSON truncation recovery (closes #8)#19
Mehdi-Ali wants to merge 4 commits into
protospatial:mainfrom
Mehdi-Ali:myNodeToCode

Conversation

@Mehdi-Ali

@Mehdi-Ali Mehdi-Ali commented May 25, 2026

Copy link
Copy Markdown

Summary

  • Adds MiniMax as an LLM provider for NodeToCode
  • Implements string-aware JSON truncation recovery for MiniMax responses
  • Complete Blueprint translation with variable and component support

Depends On

This PR builds on and supersedes #8 (MiniMax provider foundation).

Changes

  • Adds N2CMiniMaxService provider implementation
  • Adds JSON truncation recovery with string-aware parsing
  • Full Blueprint AST translation support

flashpoint493 and others added 4 commits January 12, 2026 18:17
…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.
@Mehdi-Ali Mehdi-Ali changed the title feat: Add MiniMax LLM provider and string-aware JSON truncation recovery feat(MiniMax): Add MiniMax LLM provider with JSON truncation recovery (closes #8) May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant