If I assign text, vtt format , API return this “error” . ( not final output looks fine)
File “/Users/chunwencheng/Library/Python/3.9/lib/python/site-packages/openai/api_requestor.py”, line 671, in _interpret_response_line
raise error.APIError(
openai.error.APIError: HTTP code 200 from API (WEBVTT
Yeah, it seems like it’s always expecting JSON (which return Content-Type: “application/json”) and doesn’t allow for the other formats (which return Content-Type: “text/plain”).
In the meantime, if you use the curl method, you can get the result correctly.