Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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["
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
-
for model in models_data
|
| 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
|