private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__ pydantic.error_wrappers.ValidationError: 1 validation error for GPT4All n_ctx none is not an allowed value (type=type_error.none.not_allowed)

Open mengtong0110 opened this issue 2 years ago • 4 comments

I got this bug . How could I do?

 File "pydantic/main.py", line 331, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for GPT4All
n_ctx
  none is not an allowed value (type=type_error.none.not_allowed)

mengtong0110 avatar May 19 '23 14:05 mengtong0110

See https://github.com/imartinez/privateGPT/issues/78#issuecomment-1545977382 You have to rename example.env to .env like explained in the README file.

PulpCattel avatar May 19 '23 15:05 PulpCattel

thanks~

mengtong0110 avatar May 20 '23 04:05 mengtong0110

If this is solved please close this issue.

PulpCattel avatar May 20 '23 08:05 PulpCattel

See #78 (comment) You have to rename example.env to .env like explained in the README file.

It did not fix the issue. Here is my error:

File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 1 validation error for GPT4All root Unable to instantiate model (type=value_error)

MagicTor avatar Jun 30 '23 14:06 MagicTor