From 871fd5043ba5c6b2c17fea4230d97d1e03045daf Mon Sep 17 00:00:00 2001 From: jameszyao Date: Wed, 13 Mar 2024 19:51:34 +0800 Subject: [PATCH] fix: add default system_prompt_variables value --- taskingai/_version.py | 2 +- taskingai/assistant/message.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/taskingai/_version.py b/taskingai/_version.py index 2e42793..8be8d96 100644 --- a/taskingai/_version.py +++ b/taskingai/_version.py @@ -1,2 +1,2 @@ __title__ = "taskingai" -__version__ = "0.2.0" +__version__ = "0.2.1" diff --git a/taskingai/assistant/message.py b/taskingai/assistant/message.py index 30f31de..a301749 100644 --- a/taskingai/assistant/message.py +++ b/taskingai/assistant/message.py @@ -246,7 +246,7 @@ def generate_message( """ body = MessageGenerateRequest( - system_prompt_variables=system_prompt_variables, + system_prompt_variables=system_prompt_variables or {}, stream=stream, ) @@ -281,7 +281,7 @@ async def a_generate_message( """ body = MessageGenerateRequest( - system_prompt_variables=system_prompt_variables, + system_prompt_variables=system_prompt_variables or {}, stream=stream, )