getGeminiResponse
chainalign-backend / services/gemini / getGeminiResponse
Function: getGeminiResponse()
getGeminiResponse(
prompt,options?,tenantId?,userId?):Promise<any>
Defined in: services/gemini.js:13
Sends a prompt to the Google Gemini API via the LLM Gateway Service.
Parameters
prompt
string
The prompt to send.
options?
Optional settings.
json?
boolean
Whether to parse the response as JSON.
tenantId?
string = null
Optional: The ID of the tenant for auditing.
userId?
string = null
Optional: The ID of the user for auditing.
Returns
Promise<any>
- The response from Gemini.