mirror of
https://github.com/R0m1k3/Reviflow.git
synced 2026-10-21 14:08:07 +02:00
Sauvegarde de l'état (réparation)
This commit is contained in:
commit
7c04fffe77
434 files changed
+83923
No files matched your search
@@ -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())
|
||||
Reference in new issue
Block a user