Ryan Peach
Ryan Peach
Actually, sorry. I'm still going crazy. --force-exclude doesn't seem to change whether or not my .github/scripts folder is evaluated. It works in cli but not in pre-commit.
Agree this would be majorly helpful
How can I get my console to display the echo? Instead of showing as html objects.
Have you updated? My referenced pr should have fixed it but I unfortunately never tested that particular change.
https://github.com/ryanpeach/guidance/blob/9546946eddd7d4960daa17086316f1a4dd061bcb/guidance/models/_model.py#L877 This should have fixed the fact it was printing a readable object instead of a string when you ran outside of jupyter. Yes `echo` needs to be `True`
https://github.com/ryanpeach/guidance/blob/9546946eddd7d4960daa17086316f1a4dd061bcb/guidance/models/_model.py#L2 Of note, be sure that you dont have `iPython` installed in your environment. Or it will import it and then it will print the html block instead.
> I found the answer from https://guidance.readthedocs.io/ Thanks for your good work. What was the answer? I'm concerned my PR didn't fix it.
Of lesser issue, it's not auto formatted or even linted. I would recommend `ruff` for that purpose.
Relevant lines of code: https://github.com/guidance-ai/guidance/blob/7c71e90ece97c879d4b3a1e2b33ecd6a522a25dd/guidance/models/_openai.py#L243-L251 https://github.com/guidance-ai/guidance/blob/7c71e90ece97c879d4b3a1e2b33ecd6a522a25dd/guidance/library/_json.py#L204-L211
Need to upgrade openai to 1.1 based on https://github.com/openai/openai-python/compare/v1.0.1...v1.1.0