Setting the Options property changes the current option flags
for the current client session. These flags control how the client establishes
connections and sends requests to the service provider. Applications
should use care when changing options that affect the underlying
connection, such as llmOptionSecure or llmOptionProxy.
Changing these options while there is an active connection may result in
unexpected errors. The client may need to establish a new connection
using updated settings.
The llmOptionSecure option forces the client to use HTTPS when
communicating with the provider. This is appropriate for public API
providers, but may not be supported by locally hosted providers such as
LM Studio or Ollama. Attempting to force a secure connection to a
provider that does not support HTTPS will cause the connection to fail.
The llmOptionProxy option causes the client to use the
configured Windows proxy settings when connecting to the provider.
This may be required in managed or corporate network environments, but
should generally only be enabled when proxy support is actually
required.
The llmOptionNoUserAgent option does not make requests
anonymously. The provider may still identify the client based on authentication
credentials, IP address information, request patterns, or other HTTP headers
included with the request. For more information, refer to the
UserAgent property.
Setting or clearing the llmOptionNoCache option changes
whether provider and model metadata may be cached. Applications can also
set the CacheTime property to control caching behavior.