From 9406b7d15904f195e45578088e4139e54f04b62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 1 Jun 2026 21:30:41 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20/api/profiles=20=E2=80=94=203=20LLM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site/app.py b/site/app.py index 841c21e..e69e43d 100644 --- a/site/app.py +++ b/site/app.py @@ -9,6 +9,7 @@ class SayApp: def add_routes(self): self.app.add_url_rule("/", "index", self.index) self.app.add_url_rule("/healthz", "healthz", self.health) + self.app.add_url_rule("/api/profiles", "profiles", self.profiles) def index(self): return render_template("index.html") @@ -16,6 +17,13 @@ class SayApp: def healthz(self): return jsonify({"status": "ok"}) + def profiles(self): + return jsonify([ + {"id": "ddm", "name": "DDM-120", "desc": "Быстрая модель"}, + {"id": "qwen", "name": "Qwen", "desc": "Мощная модель"}, + {"id": "deepseek", "name": "DeepSeek", "desc": "Глубокая аналитика"}, + ]) + def run(self): self.app.run(host="0.0.0.0", port=5000, debug=True)