From 816789fce5ab6cb08a21f7b6955766e8fd280adc Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 23 Jan 2025 10:32:09 +0530 Subject: [PATCH] (20250123) Bug fix in LLM invocation. --- api/blueprints/ai/llm/invoke.py | 2 +- controllers_v2/message/mail/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/blueprints/ai/llm/invoke.py b/api/blueprints/ai/llm/invoke.py index ca06063..0218b5e 100644 --- a/api/blueprints/ai/llm/invoke.py +++ b/api/blueprints/ai/llm/invoke.py @@ -185,7 +185,7 @@ async def invoke_llm( "model": llm_response.model, "output": llm_response.output, "tokens": llm_response.tokens.model_dump(), - "invocationId": llm_response.invocationId + "invocationId": str(llm_response.invocationId) } if success else None ) diff --git a/controllers_v2/message/mail/base.py b/controllers_v2/message/mail/base.py index 2c9722f..63d6ae9 100644 --- a/controllers_v2/message/mail/base.py +++ b/controllers_v2/message/mail/base.py @@ -151,7 +151,7 @@ class MailController(CoreMessageController, ABC): LLMInputMessage( role = "system", content = ( - "You're an expert mail summary assistant. That summarizes sent mails in 150 chars or less. " + "You're an expert mail summary assistant that summarizes sent mails in 150 chars or less. " "The objective of your user is to be able to recollect what the mail they sent was about from a brief " "summary. Reply in a simple string, no formatting is allowed except emojis. Good luck :)" )