crewAIInc / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
20.52k stars 2.84k forks source link

Not using the model specified #558

Closed amazing-will closed 2 months ago

amazing-will commented 5 months ago

tldr: error message suggests specified model is not being used

Hi, I am attempting to set up a heirarchical crew. I have specified the crew, with model as:

os.environ["OPENAI_API_KEY"] = "****"
os.environ['OPENAI_MODEL_NAME'] = 'gpt-3.5-turbo-1106'

project_crew = Crew(
    tasks=[task1],  # Tasks to be delegated and executed under the manager's supervision
    agents=[ writer,researcher],
    manager_llm=ChatOpenAI(temperature=0, model_name='gpt-3.5-turbo-1106'),  # Mandatory for hierarchical process
    process=Process.hierarchical,  # Specifies the hierarchical management approach
    memory=True,  # Enable memory usage for enhanced task execution
)

When running, I get the following error:

I encountered an error while trying to use the tool. This was the error: Error code: 403 - {'error': {'message': 'Project proj_qSr8*******5bDbDZcHFQClRV does not have access to model text-embedding-ada-002', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}.

What have I done wrong?

thanks in advance.

amazing-will commented 5 months ago

Ah.... solved.

For anybody else, you need to set up the "text-embedding0-ada-002" as "allowed" in your openAI project settings.

Though I am puzzled why it uses this. Can anybody explain?

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 5 days with no activity.