Skip to content

Instantly share code, notes, and snippets.

View antepenavasyfl's full-sized avatar
🎯
Focusing

Ante antepenavasyfl

🎯
Focusing
View GitHub Profile
@antepenavasyfl
antepenavasyfl / geminiService.ts
Created October 7, 2025 14:30
Risk Intelligence Dashboard API Architecture Example
import { GoogleGenAI, Type } from "@google/genai";
import type { RiskReport } from '../types';
const API_KEY = process.env.API_KEY;
if (!API_KEY) {
throw new Error("API_KEY environment variable not set.");
}
const ai = new GoogleGenAI({ apiKey: API_KEY });