Visual Studio Code – method in python 'Stream_to_file' not working
Working with OpenAI API and below is my simple code, but getting deprecation warning for 'steam_to_file' method. Code - from openai import OpenAI from pathlib import Path client = OpenAI( api_key=os.getenv("OPENAI_API_KEY"), ) speech_file_path = Path(__file__).parent / "speech.mp3" response = client.audio.speech.create(…