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

Validation Error #1290

Closed
cyborg3poch opened this issue May 22, 2024 · 4 comments
Closed

Validation Error #1290

cyborg3poch opened this issue May 22, 2024 · 4 comments

Comments

@cyborg3poch
Copy link

ValidationError: 1 validation error for Config llm Field required [type=missing, input_value={'PATH': '/Users/psyb0rg/..._INIT_AT_FORK': 'FALSE'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing

@usamimeri
Copy link
Contributor

usamimeri commented May 23, 2024

Can you provide the content of your config2.yaml? The error message indicates that the llm field is missing from config2.yaml which should be:

llm:
  api_type:…
  api_key:…

@Sivakhon
Copy link

Sivakhon commented May 23, 2024

Can you provide the content of your config2.yaml? The error message indicates that the llm field is missing from config2.yaml which should be:

llm:
  api_type:…
  api_key:…

I use Gemini and this is my content but it's still have validation error

llm:
  api_type: "gemini"
  model: "gemini-pro"
  api_key: "My_API_Key"

@usamimeri
Copy link
Contributor

Can you provide the content of your config2.yaml? The error message indicates that the llm field is missing from config2.yaml which should be:

llm:
  api_type:…
  api_key:…

I use Gemini and this is my content but it's still have validation error

llm:
  api_type: "gemini"
  model: "gemini-pro"
  api_key: "My_API_Key"

It works for me. Try to pull the latest code to ensure everything is up-to-date.

@garylin2099
Copy link
Collaborator

ValidationError: 1 validation error for Config llm Field required [type=missing, input_value={'PATH': '/Users/psyb0rg/..._INIT_AT_FORK': 'FALSE'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.7/v/missing

Make sure you have updated ~/.metagpt/config2.yaml or config/config2.yaml (for detail please see here). Can you check if the problem still exists?

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

5 participants