The WatsonxAIParams interface defines the input parameters for the WatsonxAI class.

Hierarchy

Properties

endpoint?: string

WatsonX AI Complete Endpoint. Can be used if you want a fully custom endpoint.

ibmCloudApiKey?: string

WatsonX AI Key. Provide API Key if you do not wish to automatically pull from env.

modelId?: string

WatsonX AI Model ID.

modelParameters?: Record<string, unknown>

Parameters accepted by the WatsonX AI Endpoint.

projectId?: string

WatsonX AI Key. Provide API Key if you do not wish to automatically pull from env.

region?: string

IBM Cloud Compute Region. eg. us-south, us-east, etc.

version?: string

WatsonX AI Version. Date representing the WatsonX AI Version. eg. 2023-05-29

Generated using TypeDoc