Assistant Invalid Session
nathannzw opened this issue · 0 comments
nathannzw commented
Hi may I know what is wrong with my code? I think there is an issue with the session id. Thanks.
message = assistant.message(
assistant_id = '5b9bd517-c234-4a2d-96b9-c10b26b358fc',
session_id = x,
input={
'MessageInput': 'Hello'
}
).get_result()
where x is:
session = assistant.create_session("5b9bd517-c234-4a2d-96b9-c10b26b358fc").get_result()
print(json.dumps(session, indent=2))
x = session["session_id"]