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

Pydantic Parsing Error when returning None #32

Open
johnisanerd opened this issue Sep 3, 2024 · 1 comment
Open

Pydantic Parsing Error when returning None #32

johnisanerd opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@johnisanerd
Copy link

Describe the bug
I am getting what I think is a pydantic parsing error, when the model returns "none"

Client:
Please remove untested options:

  • Python Library

Options
Multimodal

Additional context
I am getting the following error:

validation errors for ParsingModel[ExtractionResult]
__root__ -> data -> fund_amount
  none is not an allowed value (type=type_error.none.not_allowed)
__root__ -> data -> global_amount

@johnisanerd johnisanerd added the bug Something isn't working label Sep 3, 2024
@johnisanerd
Copy link
Author

I think I may have solved this; I had "null" as an option in the schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant