update code to take input from env vars

add the ability to use many api keys
replaced some prints with logging
added stats
هذا الالتزام موجود في:
2025-09-30 23:58:48 +03:00
الأصل 8d02e35b5f
التزام 6cf1876407
4 ملفات معدلة مع 90 إضافات و34 حذوفات

6
ai.py
عرض الملف

@@ -7,10 +7,8 @@ from google import genai
from google.genai import types
def generate(description, instruction):
client = genai.Client(
api_key=""
)
def generate(description, instruction, api_key):
client = genai.Client(api_key=api_key)
model = "gemini-2.5-flash"
contents = [