OptionalcacheOptionalcallbackOptionalcallbacksOptionalconcurrencyOptionalendpointWatsonX AI Complete Endpoint. Can be used if you want a fully custom endpoint.
OptionalibmWatsonX AI Key. Provide API Key if you do not wish to automatically pull from env.
OptionalmaxThe maximum number of concurrent calls that can be made.
Defaults to Infinity, which means no limit.
OptionalmaxThe maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
OptionalmetadataOptionalmodelWatsonX AI Model ID.
OptionalmodelParameters accepted by the WatsonX AI Endpoint.
OptionalonCustom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.
OptionalprojectWatsonX AI Key. Provide API Key if you do not wish to automatically pull from env.
OptionalregionIBM Cloud Compute Region. eg. us-south, us-east, etc.
OptionaltagsOptionalverboseOptionalversionWatsonX AI Version. Date representing the WatsonX AI Version. eg. 2023-05-29
The WatsonxAIParams interface defines the input parameters for the WatsonxAI class.