-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hello
When i make a pull request codeflash keeps on crashing with this message even with an api key set
Run uv run codeflash
────────────────────────────────────────────────────────────────────────────────
╭─────────────────────── https://codeflash.ai/ ───────────────────────╮
│ │
│ _ ___ _ _ │
│ | | / __)| | | | │
│ ____ ___ _ | | ____ | |__ | | ____ ___ | | _ │
│ / ___) / _ \ / || | / _ )| __)| | / _ | /___)| || \ │
│ ( (___ | |_| |( (_| |( (/ / | | | |( ( | ||___ || | | | │
│ \____) \___/ \____| \____)|_| |_| \_||_|(___/ |_| |_| │
│ v0.20.1 │
│ │
│ │
╰────────────────────────────────────────────────────────────────────╯
────────────────────────────────────────────────────────────────────────────────
ERROR Codeflash API key not found in your environment.
You can generate one at https://app.codeflash.ai/app/apikeys ,
then set it as a CODEFLASH_API_KEY environment variable.
Traceback (most recent call last):
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/bin/codeflash", line 10, in <module>
sys.exit(main())
^^^^^^
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/lib/python3.12/site-packages/codeflash/main.py", line 64, in main
optimizer.run_with_args(args)
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/lib/python3.12/site-packages/codeflash/optimization/optimizer.py", line 789, in run_with_args
optimizer = Optimizer(args)
^^^^^^^^^^^^^^^
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/lib/python3.12/site-packages/codeflash/optimization/optimizer.py", line 55, in __init__
self.aiservice_client = AiServiceClient()
^^^^^^^^^^^^^^^^^
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/lib/python3.12/site-packages/codeflash/api/aiservice.py", line 45, in __init__
self.headers = {"Authorization": f"***", "Connection": "close"}
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/SoniqueBay/SoniqueBay/.venv/lib/python3.12/site-packages/codeflash/code_utils/env_utils.py", line 115, in get_codeflash_api_key
raise OSError(msg)
OSError: I didn't find a Codeflash API key in your environment.
You can generate one at https://app.codeflash.ai/app/apikeys ,
then set it as a CODEFLASH_API_KEY environment variable.
For more information, refer to the documentation at [https://docs.codeflash.ai/optimizing-with-codeflash/codeflash-github-actions#manual-setup].
Error: Process completed with exit code 1.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels