Open jjsarf opened 4 months ago
Easiest workaround I found was to just add a dummy OPENAI_API_KEY=DUMMY_KEY in the .env file
I encounter this issue too. I set the env with a dummy OpenAI key. Getting this error, do I just ignore it like a warning?
It seems we encountered an unexpected error while trying to use the tool. This was the error: Error code: 401 - {'error': {'message': 'Incorrect API key provided: DUMMY_KEY. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
So the idea is can we have tasks/tools/agent that do not depend on any Gen AI LLM by default?
Not sure. The point is to be able to have a mix of AI and non AI agents
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Tony Kipkemboi @.> Sent: Saturday, April 27, 2024 12:02:44 AM To: joaomdmoura/crewAI @.> Cc: John Jerkovic @.>; Author @.> Subject: Re: [joaomdmoura/crewAI] Dependency on OpenAI / Hello World (Issue #256)
Has anyone found a good solution for this yet? Setting the dummy key doesn't work, FYI.
— Reply to this email directly, view it on GitHubhttps://github.com/joaomdmoura/crewAI/issues/256#issuecomment-2080349854, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIFQXAVWB3MD5RZ3EB6WFW3Y7MPOJAVCNFSM6AAAAABDONPQUWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBQGM2DSOBVGQ. You are receiving this because you authored the thread.Message ID: @.***>
Can we remove dependency on OpenAI by default?
Traceback (most recent call last): File "/home/ivica/crewai/ivo/helloworld.py", line 12, in
greeter_agent = Agent(
^^^^^^
File "/home/ivica/miniconda3/envs/m2/lib/python3.11/site-packages/pydantic/main.py", line 171, in init
self.__pydantic_validator.validate_python(data, self_instance=self)
File "/home/ivica/miniconda3/envs/m2/lib/python3.11/site-packages/crewai/agent.py", line 97, in
default_factory=lambda: ChatOpenAI(
^^^^^^^^^^^
File "/home/ivica/miniconda3/envs/m2/lib/python3.11/site-packages/langchain_core/load/serializable.py", line 107, in init
super().init(**kwargs)
File "/home/ivica/miniconda3/envs/m2/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for ChatOpenAI
root__
Did not find openai_api_key, please add an environment variable
OPENAI_API_KEY
which contains it, or passopenai_api_key
as a named parameter. (type=value_error)