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

AttributeError: 'NoneType' object has no attribute 'api_type' ! #1626

Closed
Hongcheng-Gao opened this issue Dec 5, 2024 · 2 comments
Closed

Comments

@Hongcheng-Gao
Copy link

When i running python -m examples.aflow.optimize --dataset MATH, it appear AttributeError: 'NoneType' object has no attribute 'api_type' image

@shenchucheng
Copy link
Collaborator

The models have not been configured. Please follow the instructions at https://github.com/geekan/MetaGPT/tree/main/examples/aflow#quick-start to complete the configuration and then try again.

@shenchucheng
Copy link
Collaborator

The merged PR #1632 raises exceptions more elegantly and introduces the --opt_model_name and --exec_model_name options to allow the passing of custom models.

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

2 participants