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

Don't block the gui thread for tool calls #3435

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Don't block the gui thread for tool calls #3435

merged 2 commits into from
Jan 29, 2025

Conversation

manyoso
Copy link
Collaborator

@manyoso manyoso commented Jan 29, 2025

Also allow them to run as long as user permits.

We're currently blocking the gui thread for the code interpreter. This fixes that and also gives the user control over how long the toolcall can take. This is useful for prompts like:

find the first 10 numbers that meet all these criteria: (1) they are part of the fibonacci sequence, (2) they are a prime number plus 7

Which was mentioned here and is computationally incredibly expensive with naive code.

@manyoso manyoso requested a review from cebtenzzre January 29, 2025 15:36
Signed-off-by: Adam Treat <[email protected]>
Copy link
Member

@cebtenzzre cebtenzzre left a comment

Choose a reason for hiding this comment

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

Looks fine, but see the comment.

gpt4all-chat/src/chat.cpp Show resolved Hide resolved
@manyoso manyoso merged commit 22b8278 into main Jan 29, 2025
4 of 12 checks passed
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.

2 participants