openai / openai-python

The official Python library for the OpenAI API
https://pypi.org/project/openai/
Apache License 2.0
23.09k stars 3.25k forks source link

AttributeError: 'FileCitation' object has no attribute 'quote' #1789

Open xiahbu opened 1 month ago

xiahbu commented 1 month ago

Confirm this is an issue with the Python library and not an underlying OpenAI API

Describe the bug

I am on v1.51.2 and seems like the attribute quote has not been fixed since 1.34.0. Do we have any alternative to this?

To Reproduce

Create an assistant with files associated ask a question that has filecitation check to get the file_citation.quote

Code snippets

No response

OS

Windows

Python version

Python 3.10.11

Library version

openai v1.51.2