|
The Chatbot window functionality connects to an external AI system. A subscription agreement with the AI system host is needed to obtain an API key. COMSOL is not a party in this agreement, and use of the external AI system may be subject to additional fees.
|
|
The Chatbot window is only available with the Windows® version of the COMSOL Desktop. The COMSOL software must also be installed with the CHATBOT feature included in the installation and enabled using the Enable Chatbot checkbox on the Chatbot page in the Preferences window.
|
|
•
|
Choose
|
|
•
|
|
•
|
Choose
|
|
Some attachments might exceed the Message Size limit set in the Chatbot Preference Settings. If so, you will be prompted to either send the message anyway (using the number of tokens specified in the Message Size dialog) or to cancel the operation.
|
|
•
|
Choose
|
|
•
|
Choose
|
|
•
|
Choose
|
|
•
|
Choose
|
|
•
|
Choose
|
|
•
|
The Enable Chatbot checkbox is selected by default. Clear it to close the Chatbot window and its functionality.
|
|
•
|
In the Conversation size (tokens) field, enter the threshold after which a conversation is automatically truncated, in tokens (default: 100,000 tokens).
|
|
•
|
In the Message size (tokens) field, enter the maximum size of an individual user message, in tokens (default: 5000 tokens). This limit on the message size only applies to user messages and not the messages related to the assistant or function calls.
|
|
•
|
In the Maximum number of concurrent conversations field, enter the number of ongoing conversations that are stored (default: 20, upper limit: 100). When the limit is surpassed, the oldest conversations are automatically deleted. The stored conversations can be accessed from the Conversation list in the Chatbot window.
|
|
•
|
From the Provider list, choose the AI provider that is used for generating responses: None, OpenAI (the default), Azure OpenAI, or OpenAI API compatible.
|
|
-
|
In the Endpoint field, enter the endpoint URL to your Azure OpenAI service. The URL should have the format: https://comsol.openai.azure.com, where comsol is your Azure OpenAI resource name.
|
|
-
|
In the Deployment name field, enter the model deployment name specified at the given Azure OpenAI endpoint.
|
|
-
|
In the Base URL field, enter the URL to the API server. The URL has to include protocol (HTTP/HTTPS) and port number if the port is not standard.
|
|
-
|
In the Model id field, enter the id of the language model. Reference your AI provider’s documentation for the correct values.
|
|
-
|
In the Context length (tokens) field, enter the model context size, which limits the number of input plus output tokens in any given API request (default: 128,000 tokens).
|
|
-
|
Select the Tool calling checkbox to enable support for function calling. Make sure that your AI provider supports function calling, otherwise enabling this setting can cause errors.
|
|
•
|
The API key field contains the authorization key as hidden text. If authorization is not required by the provider, the field can be left blank.
|
|
•
|
When OpenAI or Azure OpenAI is selected from the Provider list, from the Model list, choose the OpenAI or Azure OpenAI model to be used by the chatbot: GPT-5 Low (the default), GPT-5 High, GPT-5 mini Low, GPT-5 mini High, GPT-4o, GPT-4 Turbo, or Custom. The suffixes Low and High indicate the reasoning effort of the GPT-5 model — Low is faster whereas High is more thorough. If you choose Custom, also enter the following settings for a custom model:
|
|
-
|
In the Model id field, enter an id to determine the OpenAI or Azure OpenAI model.
|
|
-
|
In the Context length (tokens) field, enter the model context size, which limits the number of input plus output tokens in any given API request (default: 128,000 tokens).
|
|
If you use Azure OpenAI as your provider, the model selected in the Model list must correspond to the model configuration of the Azure deployment.
|
|
If you choose Custom from the Model list, see the OpenAI or Azure OpenAI documentation for correct values to use with the Model id and Context length (tokens) settings.
|