-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug]: validation context fails when underlying exception has keyword-only args #3233
Labels
bug
Something isn't working
Comments
JuliusDegesys
changed the title
[Bug]: validation context fails when underlying exception is has keyword-only args
[Bug]: validation context fails when underlying exception has keyword-only args
Dec 3, 2024
JuliusDegesys
added a commit
to JuliusDegesys/chroma
that referenced
this issue
Dec 3, 2024
When the type e has kwarg-only arguments, then the previous code fails.
1 task
JuliusDegesys
added a commit
to JuliusDegesys/chroma
that referenced
this issue
Dec 3, 2024
When the embedding function raises an error with a kwarg-only constructor arguments, then the validation_context wrapper code fails and raises a TypeError.
JuliusDegesys
added a commit
to JuliusDegesys/chroma
that referenced
this issue
Dec 3, 2024
When the embedding function raises an error with a kwarg-only constructor arguments, then the validation_context wrapper code fails and raises a TypeError.
JuliusDegesys
added a commit
to JuliusDegesys/chroma
that referenced
this issue
Dec 3, 2024
When the embedding function raises an error with a kwarg-only constructor arguments, then the validation_context wrapper code fails and raises a TypeError.
JuliusDegesys
added a commit
to JuliusDegesys/chroma
that referenced
this issue
Dec 3, 2024
When the embedding function raises an error with a kwarg-only constructor arguments, then the validation_context wrapper code fails and raises a TypeError.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
The following code throws a
TypeError
whenvalidation_context
tries to add context to the exception:Instead, it should throw an
APIStatusError
Versions
Chroma version: 0.5.21
OpenAI version: 1.56.1
Python version: 3.12.7 (main, Oct 19 2024, 03:00:35) [GCC 12.2.0]
Operating System: linux
OS Version: #1 SMP Thu Oct 3 10:17:28 UTC 2024
OS Release: 6.10.11-linuxkit
Machine Architecture: aarch64
Relevant log output
The text was updated successfully, but these errors were encountered: