You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "openai.py", line 711, in completion
raise e
File "openai.py", line 595, in completion
return self.streaming(
^^^^^^^^^^^^^^^
File "openai.py", line 844, in streaming
openai_client: OpenAI = self._get_openai_client( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "openai.py", line 368, in _get_openai_client
_new_client = OpenAI(
^^^^^^^
File "_client.py", line 110, 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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 1721, in completion
raise e
File "main.py", line 1694, in completion
response = openai_chat_completions.completion(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "openai.py", line 721, in completion
raise OpenAIError(
litellm.llms.openai.common_utils.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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "base_coder.py", line 1115, in send_message
"I switched to a new code base. Please don't consider the above files"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "base_coder.py", line 1392, in send
self.show_exhausted_error()
^
File "sendchat.py", line 87, in send_completion
File "utils.py", line 1154, in wrapper
raise e
File "utils.py", line 1032, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "main.py", line 3085, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "exception_mapping_utils.py", line 2201, in exception_type
raise e
File "exception_mapping_utils.py", line 357, in exception_type
raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - 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
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aider", line 10, in <module>
sys.exit(main())
^^^^^^
File "main.py", line 709, in main
if args.check_update:
^^^^^^^^^^^
File "base_coder.py", line 723, in run
File "base_coder.py", line 766, in run_one
)
File "base_coder.py", line 1117, in send_message
),
File "sendchat.py", line 30, in retry_exceptions
"""Ensure messages alternate between 'assistant' and 'user' roles.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'litellm.llms.anthropic.chat' has no attribute 'AnthropicError'
The text was updated successfully, but these errors were encountered:
Aider version: 0.57.1
Python version: 3.12.8
Platform: macOS-15.2-x86_64-i386-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 24.2.0 (64bit)
Git version: git version 2.46.2
An uncaught exception occurred:
The text was updated successfully, but these errors were encountered: