Skip to content

Commit 871fd50

Browse files
jameszyaoSimsonW
authored andcommitted
fix: add default system_prompt_variables value
1 parent d951aa0 commit 871fd50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: taskingai/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__title__ = "taskingai"
2-
__version__ = "0.2.0"
2+
__version__ = "0.2.1"

Diff for: taskingai/assistant/message.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def generate_message(
246246
"""
247247

248248
body = MessageGenerateRequest(
249-
system_prompt_variables=system_prompt_variables,
249+
system_prompt_variables=system_prompt_variables or {},
250250
stream=stream,
251251
)
252252

@@ -281,7 +281,7 @@ async def a_generate_message(
281281
"""
282282

283283
body = MessageGenerateRequest(
284-
system_prompt_variables=system_prompt_variables,
284+
system_prompt_variables=system_prompt_variables or {},
285285
stream=stream,
286286
)
287287

0 commit comments

Comments
 (0)