deepeval
deepeval copied to clipboard
AuthenticationError
❗BEFORE YOU BEGIN❗ Are you on discord? 🤗 We'd love to have you asking questions on discord instead: https://discord.com/invite/a3K9c8GRGt Yes
Describe the bug I get the error info: AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-*** You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} I use the base_url setting, but where can I set the base_url? I did not find the method in toturial.
To Reproduce Steps to reproduce the behavior:
- My script is: os.environ["OPENAI_API_KEY"] = "xxxxx" from deepeval.metrics import SummarizationMetric metric = SummarizationMetric(threshold=0.5) metric.measure(test_case) print(metric.score) print(metric.reason) print(metric.is_successful())
- Run the script
- See error
Expected behavior How can I set the OPENAI configure "base_url" in the deepeval SDK?
Screenshots
If applicable, add screenshots to help explain your problem.