Перейти к содержанию
SoulFire LogoSoulFire

AI

Inputs, outputs, and defaults of the 1 built-in node in the AI category.

Это руководство доступно только на английском.

Generated from the pinned SoulFire source. Regenerate these pages with bun run generate-node-reference.

LLM Chat

ai.llm_chat (expensive operation)

Sends a prompt to an LLM and returns the response using the bot's AI settings

Also called: ai, llm, gpt, chat, openai, prompt, completion, generate.

Inputs

PortTypeRequired / defaultDescription
in (In)execOptionalExecution input
bot (Bot)botOptionalOptional override of the bot in execution context
prompt (Prompt)stringRequiredThe prompt/message to send
systemPrompt (System Prompt)string""Optional system prompt for context
model (Model)string""Model override (empty = use bot default)
temperature (Temperature)number0.7Creativity (0.0-2.0)
maxTokens (Max Tokens)number1024Maximum response tokens

Outputs

PortTypeDescription
exec_success (Success)execExecutes on successful response
exec_error (Error)execExecutes on failed request
response (Response)stringLLM response text
success (Success)booleanWhether the request succeeded
errorMessage (Error Message)stringError message if failed
tokensUsed (Tokens Used)numberTotal tokens used

Implementation

Последнее обновление:

Полезна ли эта страница?