Skip to content

Fix astype error, new completions API, compat mode, system_prompt input - #4

Open
BitPoet wants to merge 3 commits into
lxe:masterfrom
BitPoet:dev-fix-astype-error
Open

BitPoet wants to merge 3 commits into
lxe:masterfrom
BitPoet:dev-fix-astype-error

Conversation

@BitPoet

@BitPoet BitPoet commented Jan 23, 2026

Copy link
Copy Markdown
  • Address Error: Failed to encode image: 'Tensor' object has no attribute 'astype' #3 by calling tensor.numpy().astype instead of tensor.astype.
  • Adds compatibility with new completions API by passing max_completion_tokens instead of max_tokens, and "role":"developer" instead of "role":"system".
  • Adds compatibility switch to the node to allow fall back to old behavior.
  • Adds separate (optional) input for system prompt.
  • Updates README.md with new features.

Fixes error because of missing astype method.
Adds compat_mode switch to support old and new gpt models.
Adds system_prompt input.
Added compatibility mode and system prompt options in the README. Documented fix for lxe#3.
Added new parameters 'compat_mode' and 'system_prompt' to the Node Inputs section as well in README.
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