Skip to content

pydantic issue with version >2 #686

@rcspam

Description

@rcspam

Hi,
I have an issue due to pydantic version:

$ sgpt "some question"
~/.local/share/pipx/venvs/shell-gpt/lib/python3.12/site-packages/pydantic/_internal/_config.py:411: UserWarning: Valid config keys have changed in V2:
* 'fields' has been removed
  warnings.warn(message, UserWarning)
"Some response"
```
if i force pydantic to a anterior version (pydantic <2 ) , sgpt doesn't work 
So i commented line 357 in   ~/.local/share/pipx/venvs/shell-gpt/lib/python3.12/site-packages/pydantic/_internal/_config.py
But i suppose a more elegant method exists.
Does anyone have any ideas why this happened.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions