-
Couldn't load subscription status.
- Fork 4.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
In general, it seems like a bad practice to mutate input parameters. However,
text["format"] = _type_to_text_format_param(text_format) does exactly this.
See peter-zhong-replit@1e949be for potential fix.
To Reproduce
call .parse twice with text given, but use the same variable for text, confirm the second time it's mutated and therefore will throw TypeError("Cannot mix and match text.format with text_format")
Code snippets
OS
macOS
Python version
3.12
Library version
2.0.0
jackyzha0 and peter-zhong-replit
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working