Diamanta commited on
Commit
6f8c0a3
·
verified ·
1 Parent(s): 6c2dddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- "models": [
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 {"models": [model.dict() for model in AVAILABLE_MODELS]}
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):