Spaces:
Running
Running
Commit
·
a87d626
1
Parent(s):
82621b3
added models endpoint
Browse files- gemini_proxy.py +3 -1
gemini_proxy.py
CHANGED
@@ -541,9 +541,11 @@ def get_credentials():
|
|
541 |
|
542 |
|
543 |
@app.get("/v1/models")
|
|
|
544 |
async def list_models(request: Request, username: str = Depends(authenticate_user)):
|
545 |
"""List available models - matching gemini-cli supported models exactly."""
|
546 |
-
print(f"[GET]
|
|
|
547 |
|
548 |
# Return all models supported by gemini-cli based on tokenLimits.ts
|
549 |
models_response = {
|
|
|
541 |
|
542 |
|
543 |
@app.get("/v1/models")
|
544 |
+
@app.get("/v1beta/models")
|
545 |
async def list_models(request: Request, username: str = Depends(authenticate_user)):
|
546 |
"""List available models - matching gemini-cli supported models exactly."""
|
547 |
+
print(f"[GET] {request.url.path} - User: {username}")
|
548 |
+
print(f"[MODELS] Serving models list (both /v1/models and /v1beta/models return the same data)")
|
549 |
|
550 |
# Return all models supported by gemini-cli based on tokenLimits.ts
|
551 |
models_response = {
|