Commit Graph
6 Commits
Author SHA1 Message Date
Gerald LonlasandClaude Opus 4.7 a6d471fc9b fix: accept extra kwargs in LMStudioConnect.validate_inputs
ComfyUI can pass any of a node's schema inputs to validate_inputs by
name, depending on the schema version. The current signature only
accepts server_url, timeout_seconds, and max_tokens, so extra inputs
(api_token, model, reasoning_enabled, ...) would raise TypeError before
validation ever runs.

Add **_: Any to absorb any additional inputs ComfyUI provides while
keeping the existing validation logic intact.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 00:44:57 +08:00
Gerald LonlasandClaude Sonnet 4.6 969e3acb19 fix: api key normalization, UI typo, dead code, route timeout
connect_node.py
- Fix UI label typo: "Enable Reasonning" → "Enable Reasoning"
- Use normalize_api_key() instead of an inline (api_token or "-").strip()
  expression; the helper also checks DEFAULT_API_KEY_PLACEHOLDER so both
  code paths now agree on the canonical fallback value

client.py
- Remove build_responses_input_with_image(): dead code; image_to_text_node
  builds its own multi-image payload directly in _responses_kwargs() and
  this function was never imported or called

routes.py
- _test_handler default timeout: 600 s → 15 s, consistent with
  _models_handler. Both handlers probe connectivity identically; a 10-min
  default on a "Test Connection" button is a foot-gun when called without
  a timeout_seconds query param.
- Drop now-unused DEFAULT_TIMEOUT_SECONDS import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 21:11:30 +08:00
Gerald Lonlas a5b030aabd fix: preserve connect widget order for api token and model dropdown 2026-03-04 14:46:45 +08:00
Gerald Lonlas 4a1fbd9acc feat: reorder LMStudio connect fields and move connectivity test to advanced 2026-03-04 14:42:32 +08:00
Gerald Lonlas cc556cb5af fix: avoid combo whitelist validation and defer linked prompt checks to execute 2026-03-04 14:32:43 +08:00
Gerald Lonlas e99858f857 feat: implement LMStudio connect, text-gen and image-to-text nodes 2026-03-04 14:04:42 +08:00