Skip to content

Conversation

@thedadams
Copy link
Contributor

Since the tool parameter is passed here as a string and the former for-loop used tool as a Tool object, this caused the tool that was saved in the thread state to be an object rather than a string. This would cause errors when reloading the thread from the file.

Since the tool parameter is passed here as a string and the former
for-loop used tool as a Tool object, this caused the tool that was saved
in the thread state to be an object rather than a string. This would
cause errors when reloading the thread from the file.

Signed-off-by: Donnie Adams <[email protected]>
Copy link
Contributor

@cjellick cjellick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

Copy link
Contributor

@StrongMonkey StrongMonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@thedadams thedadams merged commit 6170a4c into gptscript-ai:main Aug 21, 2024
@thedadams thedadams deleted the tool-state-string branch August 21, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants