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 :)" )