Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allocate new storage for env vars on each tool call #841

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

g-linville
Copy link
Member

@g-linville g-linville commented Sep 6, 2024

Environment variables in separate slices used to point to the same underlying array. This manifested itself in parallel tool calls all having the same GPTSCRIPT_INPUT value. This PR fixes that.

This is needed for #842

Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville merged commit b8f6209 into gptscript-ai:main Sep 6, 2024
10 checks passed
@g-linville g-linville deleted the fix-parallel-tool-calls branch September 6, 2024 16:11
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