Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ async def health_check():
|
|
| 115 |
@app.get("/api/tags")
|
| 116 |
async def api_tags():
|
| 117 |
return JSONResponse(content={
|
| 118 |
-
"
|
| 119 |
{
|
| 120 |
"name": "codellama-7b-instruct",
|
| 121 |
"modified_at": "2025-06-01T00:00:00Z", # Replace with actual last modified ISO8601 UTC
|
|
@@ -137,7 +137,7 @@ async def list_models():
|
|
| 137 |
|
| 138 |
@app.get("/api/v0/models")
|
| 139 |
async def api_models():
|
| 140 |
-
return {"
|
| 141 |
|
| 142 |
@app.get("/models/{model_id}")
|
| 143 |
async def get_model(model_id: str):
|
|
|
|
| 115 |
@app.get("/api/tags")
|
| 116 |
async def api_tags():
|
| 117 |
return JSONResponse(content={
|
| 118 |
+
"data": [
|
| 119 |
{
|
| 120 |
"name": "codellama-7b-instruct",
|
| 121 |
"modified_at": "2025-06-01T00:00:00Z", # Replace with actual last modified ISO8601 UTC
|
|
|
|
| 137 |
|
| 138 |
@app.get("/api/v0/models")
|
| 139 |
async def api_models():
|
| 140 |
+
return {"data": [model.dict() for model in AVAILABLE_MODELS]}
|
| 141 |
|
| 142 |
@app.get("/models/{model_id}")
|
| 143 |
async def get_model(model_id: str):
|