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

Add extra check in llmpool to ensure all the tasks share the same parent class #266

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Jan 17, 2024

Description

This PR fixes the following error:

 ValueError: All the `ProcessLLM` in `llms` must share the same task (either as the instance or the parent class).

That appears with multiple tasks that all inherit from the same parent. We now check they all share the same parent class (we go one only one class in the hierarchy up, in case there are higher hierarchies we should update the check)

@plaguss plaguss self-assigned this Jan 17, 2024
@plaguss plaguss merged commit 9edf4b6 into main Jan 17, 2024
4 checks passed
@plaguss plaguss deleted the fix/llmpool-error branch January 17, 2024 17:08
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.

None yet

1 participant