Skip to content

[BUG] UnsupportedFieldAttributeWarning: The 'validate_default' attribute with value True was provided to the Field() #52

@dnielsen

Description

@dnielsen

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

% python 3_save_to_vector_db.py
/opt/anaconda3/envs/allycat-1/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py:2249: UnsupportedFieldAttributeWarning: The 'validate_default' attribute with value True was provided to the Field() function, which has no effect in the context it was used. 'validate_default' is field-specific metadata, and can only be attached to a model field using Annotated metadata or by assignment. This may have happened because an Annotated type alias using the type statement was used, or if the Field() function was attached to a single member of a union type.
warnings.warn(

Image

Expected Behavior

I didn't expect to get this warning.

Steps To Reproduce

I used the new instructions for the workshop at AI Summit. I am using Anaconda.

Environment

- OS: Mac on Apple cpu
- Browser: n/a

Anything else?

No response

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions