AI Object
 
Syntax
 
strValue = AI.Language
AI.Language = strLanguage
 
Type
String
Access
read/write
Description
Gets or sets the ISO 639-1 two-letter language code that instructs the AI in which language to answer. Common values are "nl" for Dutch and "en" for English. The default is derived from the Tradium user's language preference at the moment the AI object is initialized.
 
The language is included in every Ask submission and used server-side when assembling the prompt template, so changes take effect on the very next call. Setting Language to an empty string causes the server to fall back to its default (English).
 
Setting Language does not retroactively translate answers from earlier turns in a multi-turn conversation — only the new answer will be in the requested language.
 
See Also
Example
 
Sub Main
Dim hConv As Long
 
AI.Language = "en"
hConv = AI.Ask("Summarize the open invoices for customer ACME.", aiGeneral)
End Sub