From 456562ec1d2d6ca9f15270614987cfa47c9d0bcc Mon Sep 17 00:00:00 2001 From: xds Date: Thu, 12 Feb 2026 00:13:06 +0300 Subject: [PATCH] main -> aiws --- aiws.py | 2 +- api/service/generation_service.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aiws.py b/aiws.py index 21f91c8..57a1c7e 100644 --- a/aiws.py +++ b/aiws.py @@ -196,7 +196,7 @@ Instrumentator( # should_group_untemplated=False, # (опционально) не схлопывать untemplated в "none" ).instrument( app, - metric_namespace="fastapi", + metric_namespace="ai_bot", ).expose(app, endpoint="/metrics", include_in_schema=False) app_info = Info("fastapi_app_info", "FastAPI application info") app_info.info({"app_name": "ai-bot"}) diff --git a/api/service/generation_service.py b/api/service/generation_service.py index 1365e78..b433eac 100644 --- a/api/service/generation_service.py +++ b/api/service/generation_service.py @@ -267,7 +267,8 @@ class GenerationService: minio_object_name=filename, minio_bucket=self.s3_adapter.bucket_name, thumbnail=thumbnail_bytes, - created_by=generation.created_by + created_by=generation.created_by, + project_id=generation.project_id ) # Сохраняем в БД