From ab6521430db5540b7ff58e75266ddcd111df843d Mon Sep 17 00:00:00 2001 From: Mirian Okradze Date: Mon, 4 Mar 2024 19:50:01 +0400 Subject: [PATCH] fix: fine tuning check --- apps/server/services/fine_tuning.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/services/fine_tuning.py b/apps/server/services/fine_tuning.py index 3082ad40c..7f8231a83 100644 --- a/apps/server/services/fine_tuning.py +++ b/apps/server/services/fine_tuning.py @@ -93,8 +93,8 @@ def check_fine_tuning(session: Session, id: UUID): if fine_tuning_model.status == FineTuningStatus.COMPLETED.value: fine_tuning_model.model_identifier = job.fine_tuned_model - if job.error: - fine_tuning_model.error = job.error + if job.error and job.error.error: + fine_tuning_model.error = job.error.error session.commit()