Basic Information

appmixer.ai.openai.SendPrompt

1.0.0

Public

Send a prompt to a Large Language Model and receive a response.

Input Ports

in

FieldTypeDescription
Instructions textarea The system instructions that the model follows. For example 'You are a personal math tutor.'. Defaults to 'You are a helpful assistant.'.
Prompt textarea -
Model text ID of the model to use.
Temperature number A value between 0 and 2 controlling the randomness of the model. Lower values make the output more focused and deterministic, higher values more creative. Leave empty to use the model default.
Max Tokens number The maximum number of tokens the model may generate for the answer. Leave empty to let the model generate until it stops on its own or reaches the context window limit.
Top P number The nucleus sampling threshold, a value between 0 and 1. The model considers only the tokens with the top P probability mass. We recommend altering either Temperature or Top P, but not both. Leave empty to use the model default.
Frequency Penalty number A value between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Leave empty to use the model default.
Presence Penalty number A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Leave empty to use the model default.

Output Ports

out

FieldTypeDescription
Answer -
Prompt -

Full Metadata