Skip to content

Commit 1a71022

Browse files
jameszyaoSimsonW
authored andcommitted
fix: fix user role
1 parent 3a8d0c3 commit 1a71022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

taskingai/assistant/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def create_user_message(
168168

169169
api_instance = get_api_instance(ModuleType.assistant)
170170
body = MessageCreateRequest(
171-
role=MessageRole.USER,
171+
role=MessageRole.user,
172172
content=MessageContent(text=text),
173173
metadata=metadata,
174174
)

0 commit comments

Comments
 (0)