File tree Expand file tree Collapse file tree 5 files changed +234
-22
lines changed Expand file tree Collapse file tree 5 files changed +234
-22
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ ADMIN_DB_NAME=postgres
1313
1414# Culqui Keys
1515CULQI_PRIVATE_KEY = " sk_test_xxx"
16- VITE_CULQI_PUBLIC_KEY = " pk_test_xxx"
16+ VITE_CULQI_PUBLIC_KEY = " pk_test_xxx"
17+
18+ GOOGLE_API_KEY = " xxx"
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ CS_BASE_URL="https://fullstock-images.s3.us-east-2.amazonaws.com"
99CULQI_PRIVATE_KEY = " sk_test_EC8oOLd3ZiCTKqjN"
1010VITE_CULQI_PUBLIC_KEY = " pk_test_Ws4NXfH95QXlZgaz"
1111
12- BASE_URL = " http ://localhost:3000 "
12+ BASE_URL = " https ://fullstock-frontend.onrender.com/ "
1313ARTILLERY_API_KEY = " a9_lnmbws559no1kfajobi7aq0mf831v034"
Original file line number Diff line number Diff line change 1+ import { GoogleGenAI } from "@google/genai" ;
2+ import dotenv from "dotenv" ;
3+
4+ dotenv . config ( ) ;
5+
6+ const ai = new GoogleGenAI ( {
7+ apiKey : process . env . GOOGLE_API_KEY || "" ,
8+ } ) ;
9+
10+ async function main ( ) {
11+ const response = await ai . models . generateContent ( {
12+ model : "gemini-2.5-flash" ,
13+ contents : "Explica cómo funciona la IA en pocas palabras" ,
14+ } ) ;
15+
16+ console . log ( response . text ) ;
17+ }
18+
19+ await main ( ) ;
You can’t perform that action at this time.
0 commit comments