Spaces:
Paused
Paused
Update backend_api.py
Browse files- backend_api.py +3 -0
backend_api.py
CHANGED
|
@@ -24,6 +24,9 @@ import httpx
|
|
| 24 |
# Import project importer for importing from HF/GitHub
|
| 25 |
from project_importer import ProjectImporter
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Import system prompts from standalone backend_prompts.py
|
| 28 |
# No dependencies on Gradio or heavy libraries
|
| 29 |
print("[Startup] Loading system prompts from backend_prompts...")
|
|
|
|
| 24 |
# Import project importer for importing from HF/GitHub
|
| 25 |
from project_importer import ProjectImporter
|
| 26 |
|
| 27 |
+
for m in genai.list_models():
|
| 28 |
+
if 'generateContent' in m.supported_generation_methods:
|
| 29 |
+
print(m.name)
|
| 30 |
# Import system prompts from standalone backend_prompts.py
|
| 31 |
# No dependencies on Gradio or heavy libraries
|
| 32 |
print("[Startup] Loading system prompts from backend_prompts...")
|