We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ran into this error when running example.py
ERROR:root:Authentication error. Skipping request. ERROR:root:Authentication error. Skipping request. WARNING:root:Can't find similar_to_expected in scores. Did you run `evaluate`? Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Users/qianh1/Code/prompttools/examples/prompttests/example.py", line 43, in <module> prompttest.main() File "/Users/qianh1/Code/prompttools/prompttools/testing/prompttest.py", line 108, in main failures = sum([test() for test in TESTS_TO_RUN]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/qianh1/Code/prompttools/prompttools/testing/prompttest.py", line 108, in <listcomp> failures = sum([test() for test in TESTS_TO_RUN]) ^^^^^^ File "/Users/qianh1/Code/prompttools/prompttools/testing/prompttest.py", line 58, in runs_test return run_prompt_template_test( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/qianh1/Code/prompttools/prompttools/testing/runner/prompt_template_runner.py", line 82, in run_prompt_template_test scored_template[prompt_template] < threshold ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered:
It looks like you're trying to run the example without setting your OPENAI_API_KEY, or setting DEBUG=1. Try running the following:
OPENAI_API_KEY
DEBUG=1
DEBUG=1 python example.py
I'll make the instructions and error handling more explicit.
Sorry, something went wrong.
steventkrawczyk
No branches or pull requests
🐛 Describe the bug
Ran into this error when running example.py
The text was updated successfully, but these errors were encountered: