Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
add `GET /models` endpoint
Jeffrey Morgan51164f57a243
diff --git a/proto.py b/proto.pyindex d8812e7ab..1c12db52d 100644--- a/proto.py+++ b/proto.py@@ -74,6 +74,12 @@ def generate():stream_with_context(stream_response()), mimetype="text/event-stream")[email protected]("/models", methods=["GET"])+def models():+ all_files = os.listdir("./models")+ bin_files = [file.replace(".bin", "") for file in all_files if file.endswith(".bin")]+ return Response(json.dumps(bin_files), mimetype="application/json")+if __name__ == "__main__":app.run(debug=True, threaded=True, port=5001)app.run()