Skip to content

Document how to run unit tests with an API key #127

@0x0f0f0f

Description

@0x0f0f0f

I didn't dig deep in the tests but I guess it's defaulting to OpenAI API.
Just running python -m unittest discover -s tests, bumps in WARNING:openevolve.llm.openai:Error on attempt 1/4: Error code: 401 - {'error': {'message': 'Incorrect API key provided: test. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}.
Maybe it's good to add the fact that we need the environment variable to CONTRIBUTING.md or even better to README.md

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions