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. By default, the CHATBOT feature is not included, but if it is selected and installed, the Enable Chatbot checkbox is selected by default.
|
•
|
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) or Azure OpenAI. If you choose Azure OpenAI, also enter the following settings:
|
-
|
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.
|
•
|
The API key field contains the OpenAI API or Azure API authorization key as hidden text.
|
•
|
From the Model list, choose the OpenAI or Azure OpenAI model to be used by the chatbot: GPT-4o, (the default), GPT-4 Turbo, or Custom. 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).
|
-
|
In the Maximum generated tokens field, enter a limit for the number of output tokens in any given API request (default: 4096 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, Context length (tokens), and Maximum generated tokens preference settings.
|