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

Terminal interactive usage of bespokelabs curator package #114

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

CharlieJCJ
Copy link
Contributor

@CharlieJCJ CharlieJCJ commented Nov 15, 2024

inspect.getsource wasn't working when used in interactive python.

Here is a patch such that does another try except for OSError, to return empty as result of inspect.getsource, bypassing the terminal error.

We strongly encourage users to use bespoke curator in python scripts, for better cache tracking of prompt_func and parse_func and visualization.

@CharlieJCJ CharlieJCJ changed the base branch from main to dev November 15, 2024 03:15
@CharlieJCJ CharlieJCJ requested a review from vutrung96 November 15, 2024 03:15
@CharlieJCJ CharlieJCJ marked this pull request as ready for review November 15, 2024 03:15
@CharlieJCJ CharlieJCJ linked an issue Nov 15, 2024 that may be closed by this pull request
@CharlieJCJ CharlieJCJ merged commit 4a7ae7f into dev Nov 15, 2024
@vutrung96 vutrung96 deleted the fix-terminal-demo branch November 15, 2024 03:46
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.

inspect.getsource wasn't working when used in interactive python.
2 participants