auto-evaluator
auto-evaluator copied to clipboard
I've passed in the openai_api_key but still getting this validation error
ValidationError: 1 validation error for ChatOpenAI root Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)
Traceback:
File "/Users/yujiedou/Desktop/auto-evaluator-main/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/Users/yujiedou/Desktop/auto-evaluator-main/auto-evaluator.py", line 302, in
export OPENAI_API_KEY then simply kick off streamlit and ensure you have credits.
also, some features (GPT4) may not be accessible w/ your key. (working on a hosted version for this.)