SfapApiClient
Provides REST client methods for a variety of sfap_api endpoints.
chat-generationsembeddingsfeedbackgenerations
See https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-rest.html
Parameters
The Salesforce sfap_api hostname
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
The REST client to use
Functions
Fetches generated chat responses from the sfap_api chat-generations endpoint.
Submit a request to the sfap_api embeddings endpoint.
Fetches generated text from the sfap_api "generations" endpoint.
Submits feedback for previously generated text from the sfap_api endpoints to the sfap_api feedback endpoint.