Sauvegarde de l'état (réparation)

This commit is contained in:
Reviflow Bot committed 2026-01-31 11:00:30 +01:00
commit 7c04fffe77
434 files changed
+83923

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import httpx
import asyncio
import json
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/models"
async def list_models():
async with httpx.AsyncClient() as client:
response = await client.get(OPENROUTER_API_URL)
if response.status_code == 200:
models = response.json()["data"]
gemini_models = [m["id"] for m in models if "gemini" in m["id"] and "flash" in m["id"]]
print("Available Gemini Flash Models:")
for m in gemini_models:
print(f"- {m}")
else:
print(f"Error: {response.status_code} - {response.text}")
if __name__ == "__main__":
asyncio.run(list_models())