Whatever message this page gives is out now! Go check it out!
.chat()) and returns a response. It does not maintain conversation history or tools by itself.ChatModel() with a configuration struct. The table below lists the parameters you need most often to run your first call. For the full parameter matrix (all providers), see Build with AI.
chatConfig = {
PROVIDER : "openAi",
APIKEY : "#application.apiKey#",
MODELNAME : "gpt-4o-mini",
TEMPERATURE : 0.7
};
chatModel = ChatModel(chatConfig);
| Param name | Type | Description |
|---|---|---|
provider | String | Provider of the model (required). Example: "openai". |
baseUrl | String | Base URL for the API endpoint (required or defaulted per provider). |
apiKey | String | Authentication key for cloud APIs (not used by Ollama). |
modelName | String | Model identifier (required). Example: "gpt-4o-mini". |
temperature | Number | Randomness of the output (optional). Typical: 0.7. |
maxTokens | Number | Maximum tokens to generate (optional). |
timeout | Number | Seconds to wait for a response (optional). |