-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Traceback (most recent call last):
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/cli.py", line 1318, in run_cai_cli
if commands_handle_command(command, args):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/repl/commands/base.py", line 154, in handle_command
return cmd.handle(args)
^^^^^^^^^^^^^^^^
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/repl/commands/agent.py", line 130, in handle
return self.handle_current(args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/repl/commands/agent.py", line 800, in handle_current
agents_to_display = get_available_agents()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/agents/init.py", line 92, in get_available_agents
module = importlib.import_module(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/cai/agents/android_sast_agent.py", line 44, in
openai_client=AsyncOpenAI(),
^^^^^^^^^^^^^
File "/home/danger/CIA_bot/cai_env/lib/python3.12/site-packages/openai/_client.py", line 349, in init
raise OpenAIError(
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
Make clean code error throws so one can idenify real cuase than thrown error