Define the connection to the AI service provider

In Alfabet Expand, go to the Presentation tab, expand the XML Objects > Integration Solutions node and double-click AIServicesConfig. The definition of the connection depends on the service provider.

Optionally, you can configure the connection to the AI service to be routed via a proxy server. This requires the following additional configuration in the XML object AIServicesConfig:

  1. Add a child XML element Proxies to the AIServicesConfig XML element.
  2. Add a child XML element Proxy to the Proxies XML element.
  3. Define the following XML attributes for the Proxy XML element:
    • Name: Define a unique name for the proxy. This name is used to refer to the proxy in the data connection configuration.
    • url: Define the URL of the proxy server.
    • user: If required, enter the user name for access to the proxy server. The domain name for authentication is defined separately with the XML attribute domain and must not be specified as part of the user name.
    • psw: If required, enter the password for access to the proxy server.
    • Domain: If required, define the domain name that shall be used as part of the user name for authentication at the proxy server.
    • BypassOnLocal: Set this XML attribute to true if requests to local Internet resources (http://localhost, http://loopback, or http://127.0.0.1) shall not use the proxy server. If the XML attribute is set to false, all requests are sent via the proxy server.
  4. Add an XML attribute Proxy to the AIService XML element specifying the connection that shall be routed via the proxy server. Set the XML attribute Proxy to the name of the proxy definition.

You can define multiple proxy definitions and route each defined AI service via a different proxy.

If you have configured multiple repository connections and each repository connection shall use a different proxy, you can add additional proxies to your proxy configuration and refer to one of the proxies in the repository connection configuration. The proxy definition above will be used as default if no proxy is assigned to a data connection. The use of an additional proxy requires the following configuration:

  • <AIServicesConfig>
  • <Proxies>
    • <Proxy Name='Proxy1' url='http://proxy1:8080' user='proxyuser' psw='proxypw' BypassOnLocal='true'/>
    • <Proxy Name='Proxy2' url='http://proxy2:8080' user='proxy2user' psw='proxy2pw' BypassOnLocal='false'/>
  • </Proxies>
  • <AIServices>
    • <AIService Name='AITextService' Type='TextGenerate' Enable='true' Provider='' Authentication='' Model='' TimeOut='60' Proxy='Proxy1'/>
  • </AIServices>
  • [...]
  • </AIServicesConfig>