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 generate_base_runnable in setup.py to make a custom input interface available for each player #31

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

hmasdev
Copy link
Owner

@hmasdev hmasdev commented Oct 27, 2024

This pull request fixes the generate_base_runnable function in setup.py to ensure that a custom input interface is available for each player. Previously, the function did not properly handle the case when the input_func parameter was not None and the model parameter was None. This caused an error to be raised. With this fix, the function now correctly generates a BaseChatModel instance or a Runnable instance based on the provided parameters. Additionally, a warning message is logged if an invalid pair of model and input_func is provided, and the function falls back to using a chat model with the DEFAULT_MODEL.

@hmasdev hmasdev self-assigned this Oct 27, 2024
@hmasdev hmasdev merged commit 0535429 into main Oct 27, 2024
18 checks passed
@hmasdev hmasdev deleted the make-custom-input-interface-available branch October 27, 2024 12:49
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.

1 participant