Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not using the model specified #558

Open
amazing-will opened this issue May 3, 2024 · 1 comment
Open

Not using the model specified #558

amazing-will opened this issue May 3, 2024 · 1 comment

Comments

@amazing-will
Copy link

amazing-will commented May 3, 2024

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant