Skip to main content

getGeminiResponse

chainalign-backend


chainalign-backend / gemini / getGeminiResponse

Function: getGeminiResponse()

getGeminiResponse(prompt, tenantId, user): Promise<string>

Defined in: gemini.js:10

Sends a prompt to the Gemini model via AIGateway and returns the text response.

Parameters

prompt

string

The prompt to send to the Gemini model.

tenantId

string

The ID of the tenant making the request.

user

any

The user object (e.g., from req.user).

Returns

Promise<string>

The text response from the Gemini model.