yangtb24 commited on
Commit
b18e21c
·
verified ·
1 Parent(s): 6eb16ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py CHANGED
@@ -833,6 +833,32 @@ def list_models():
833
  "root": model,
834
  "parent": None
835
  })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
836
 
837
  return jsonify({
838
  "success": True,
 
833
  "root": model,
834
  "parent": None
835
  })
836
+
837
+ for model in image_models:
838
+ detailed_models.append({
839
+ "id": model,
840
+ "object": "model",
841
+ "created": 1678888888,
842
+ "owned_by": "openai",
843
+ "permission": [
844
+ {
845
+ "id": f"modelperm-{uuid.uuid4().hex}",
846
+ "object": "model_permission",
847
+ "created": 1678888888,
848
+ "allow_create_engine": False,
849
+ "allow_sampling": True,
850
+ "allow_logprobs": True,
851
+ "allow_search_indices": False,
852
+ "allow_view": True,
853
+ "allow_fine_tuning": False,
854
+ "organization": "*",
855
+ "group": None,
856
+ "is_blocking": False
857
+ }
858
+ ],
859
+ "root": model,
860
+ "parent": None
861
+ })
862
 
863
  return jsonify({
864
  "success": True,