SfapApiClient

constructor(apiHostName: String, modelName: String? = null, restClient: RestClient)

Parameters

apiHostName

The Salesforce sfap_api hostname

modelName

The model name to request from. For possible values, see https://developer.salesforce.com/docs/einstein/genai/guide/api-names.html. Note that the embeddings endpoint requires an embeddings-enabled model such as sfdc_ai__DefaultOpenAITextEmbeddingAda_002. Also note that submitting to the feedback endpoint does not require value for this parameter

restClient

The REST client to use