Skip to content

Conversation

ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Aug 12, 2025

openai-python seems to not return it as a typed object but a loosely typed dict. That is: you are supposed to access sub-fields as contents["type"] not content.type.

Test Plan

Will regenerate client and test with test_openai_vector_stores.py

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 12, 2025
@ashwinb
Copy link
Contributor Author

ashwinb commented Aug 12, 2025

Hm, openai client is just bad here, maybe we should keep what we have. I will update our tests accordingly.

@ashwinb ashwinb closed this Aug 12, 2025
@franciscojavierarceo
Copy link
Collaborator

franciscojavierarceo commented Aug 13, 2025

Yeah I mentioned this in my PR #3054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants