Skip to content

LM Studio Enhancements + UE 5.8 comaptibility - #20

Open
cryptosebek wants to merge 3 commits into
protospatial:mainfrom
cryptosebek:fix/lm-studio
Open

LM Studio Enhancements + UE 5.8 comaptibility#20
cryptosebek wants to merge 3 commits into
protospatial:mainfrom
cryptosebek:fix/lm-studio

Conversation

@cryptosebek

@cryptosebek cryptosebek commented Jun 25, 2026

Copy link
Copy Markdown

Motivation

Latest LM Studio versions introduced reasoning models that return content in reasoning_content field instead of content, making the plugin incompatible. This fix enables support for these models and adds better token limit control. Also fixes a UE 5.8 compilation error caused by the FJsonObject::Values key type change.

Changes

  • Add LMStudioMaxTokens configuration setting (defaults to 32768)
  • Add fallback to reasoning_content for LM Studio reasoning models when message content is empty
  • Improve model_info field access with safe type checking
  • Fix UE 5.8 compilation error by converting FJsonObject::Values keys to FString in flow parsing

Why

Enables support for reasoning models served through LM Studio, provides better control over output token limits, and restores compatibility with Unreal Engine 5.8.

Testing

  • Tested with reasoning models that return content in reasoning_content field
  • Verified model_info field handling with missing field scenarios
  • Verified flow JSON parsing compiles against UE 5.8 FJsonObject::Values API

@cryptosebek cryptosebek changed the title LM Studio Enhancements LM Studio Enhancements + UE 5.8 comaptibility Aug 23, 2026
@cryptosebek

Copy link
Copy Markdown
Author

@NCMcClure just updated this PR to make it compile for UE 5.8

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