Skip to main content

Chat

Send a message in a conversation that remembers earlier messages of the same chat session until End chat.

Command in the Generative AI toolkit · id ooa.genai/chat · 30 inputs (1 required), 5 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
MessageStringYesYour next message.
Chat sessionStringNoDefaultName of the conversation; use different names for separate chats in one agent.
SystemStringNoInstructions for the model's role; set on the first message of a session (a new value replaces the old one).
ProviderStringNoopenaiWho runs the model: OpenAI, Azure OpenAI, Anthropic, OpenAI-compatible (LiteLLM, vLLM, Ollama), Hugging Face (its router or your own TGI server), AWS SageMaker (a model on an Amazon SageMaker endpoint), AWS Bedrock or Google Vertex AI (Gemini).
ConnectionStringNoName of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action.
ModelStringNoModel name; the deployment name for Azure OpenAI; the endpoint name for AWS SageMaker; the model or inference profile id for AWS Bedrock.
API keyCredentialNoAPI key or access token from the vault (not needed for some self-hosted endpoints). For AWS Bedrock and AWS SageMaker: the AWS secret access key (or ACCESS_KEY_ID:SECRET). For Google Vertex AI: a service-account JSON key or an access token.
Endpoint addressStringNoEndpoint; required for Azure OpenAI, Vertex AI (https://REGION-aiplatform.googleapis.com/v1/projects/PROJECT/locations/REGION) and self-hosted models (for a TGI server, e.g. http://tgi-host:8080/v1).
TemperatureNumberNo00 = consistent, higher = more creative.
Maximum tokensNumberNo1024Maximum reply length in tokens.
Hide personal dataBooleanNotrueReplace emails, phone and card numbers, IBANs and similar before sending; restored in the answer.
History limitNumberNo40Most messages to keep in the session; the oldest are dropped first.
Top pNumberNoNucleus sampling: only the most likely words whose chances add up to this share are used (above 0 to 1); provider default when empty.
Stop sequencesListNoUp to 4 texts at which the model stops writing.
Presence penaltyNumberNoFrom -2 to 2; higher values push the model toward new topics (OpenAI-style providers).
Frequency penaltyNumberNoFrom -2 to 2; higher values make the model repeat itself less (OpenAI-style providers).
Timeout (seconds)NumberNo0Seconds to wait for the model; 180 when 0.
AWS access key IDCredentialNoAWS Bedrock and AWS SageMaker only: AWS access key id from the vault (api_key then holds the secret access key).
AWS regionStringNoAWS Bedrock and AWS SageMaker only: AWS region, e.g. eu-west-1.
ImagesListNoPictures: file paths (.png, .jpg, .gif, .webp) or web links starting with http:// or https://, which the provider fetches (not Amazon Bedrock). The model must accept pictures.
Top kNumberNoOnly pick from this many most likely words (Anthropic models).
SeedNumberNoSame seed and settings give the same answer where the provider supports it.
Response formatStringNotextjson: ask for one JSON object and also return it parsed.
AWS session tokenCredentialNoAWS Bedrock and AWS SageMaker only: the session token from the vault, when the access key is a temporary one (for example from an assumed role).
End userStringNoAn id for the person the answer is for, passed on for the provider's abuse monitoring (OpenAI-style providers).
Logit biasDictionaryNoMake words more or less likely (OpenAI and Azure OpenAI): token id to a weight from -100 (never) to 100 (always), e.g. {"50256": -100}.
ExamplesDictionaryNoSample questions and the answers you want, question to answer; sent before the conversation as earlier turns so the model follows the pattern.
Image detailStringNoHow closely the model looks at pictures (OpenAI and Azure OpenAI): low is quicker and cheaper, high reads fine print; auto lets the model decide.
Provider optionsDictionaryNoExtra settings for this provider, added to the request as they are, e.g. {"reasoning_effort": "low"}; a dictionary is merged into the setting of the same name.
API versionStringNo2024-06-01Azure OpenAI only: the API version to call; change it when your resource needs a newer one.

Outputs​

OutputTypeWhat it is
textStringThe model's reply.
jsonAnyThe reply parsed as JSON, when response_format is json.
turnsNumberNumber of messages now held in the session (yours and the model's).
input_tokensNumberTokens in the request.
output_tokensNumberTokens in the reply.