nanoppa commited on
Commit
f3e9394
·
verified ·
1 Parent(s): eb6ac38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -38,10 +38,20 @@ def get_models():
38
  {
39
  "id": model["id"],
40
  "object": "model",
41
- "created": current_timestamp,
42
- "owned_by": model["name"].lower().replace(" ", "_")
 
 
 
 
 
 
 
 
 
 
43
  }
44
- for model in models_data["models"]
45
  ]
46
  }
47
  return converted_data
 
38
  {
39
  "id": model["id"],
40
  "object": "model",
41
+ "created": current_timestamp,
42
+ "owned_by": "openai" if "Meta" in model["id"] else "third_party",
43
+ "permissions": [],
44
+ "root": model["id"],
45
+ "parent": None,
46
+ "capabilities": {
47
+ "temperature": model["temperature"],
48
+ "top_p": model["top_p"]
49
+ },
50
+ "name": model["name"],
51
+ "description": model["description"],
52
+ "available": model["available"]
53
  }
54
+ for model in models_data.get("models", [])
55
  ]
56
  }
57
  return converted_data