Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -505,7 +505,7 @@ def list_models():
|
|
505 |
)
|
506 |
|
507 |
for model in all_models:
|
508 |
-
|
509 |
"id": model,
|
510 |
"object": "model",
|
511 |
"created": 1678888888,
|
@@ -513,7 +513,28 @@ def list_models():
|
|
513 |
"permission": [],
|
514 |
"root": model,
|
515 |
"parent": None
|
516 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
|
518 |
return jsonify({
|
519 |
"success": True,
|
|
|
505 |
)
|
506 |
|
507 |
for model in all_models:
|
508 |
+
model_data = {
|
509 |
"id": model,
|
510 |
"object": "model",
|
511 |
"created": 1678888888,
|
|
|
513 |
"permission": [],
|
514 |
"root": model,
|
515 |
"parent": None
|
516 |
+
}
|
517 |
+
detailed_models.append(model_data)
|
518 |
+
|
519 |
+
if "DeepSeek-R1" in model:
|
520 |
+
detailed_models.append({
|
521 |
+
"id": model + "-thinking",
|
522 |
+
"object": "model",
|
523 |
+
"created": 1678888888,
|
524 |
+
"owned_by": "openai",
|
525 |
+
"permission": [],
|
526 |
+
"root": model + "-thinking",
|
527 |
+
"parent": None
|
528 |
+
})
|
529 |
+
detailed_models.append({
|
530 |
+
"id": model + "-openwebui",
|
531 |
+
"object": "model",
|
532 |
+
"created": 1678888888,
|
533 |
+
"owned_by": "openai",
|
534 |
+
"permission": [],
|
535 |
+
"root": model + "-openwebui",
|
536 |
+
"parent": None
|
537 |
+
})
|
538 |
|
539 |
return jsonify({
|
540 |
"success": True,
|