Commit 257152bb
Changed files (3)
src
openai
src/openai/_extras/numpy_proxy.py
@@ -10,7 +10,7 @@ if TYPE_CHECKING:
import numpy as numpy
-NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra="audio")
+NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra="voice_helpers")
class NumpyProxy(LazyProxy[Any]):
src/openai/_extras/sounddevice_proxy.py
@@ -10,7 +10,7 @@ if TYPE_CHECKING:
import sounddevice as sounddevice # type: ignore
-SOUNDDEVICE_INSTRUCTIONS = format_instructions(library="sounddevice", extra="audio")
+SOUNDDEVICE_INSTRUCTIONS = format_instructions(library="sounddevice", extra="voice_helpers")
class SounddeviceProxy(LazyProxy[Any]):
pyproject.toml
@@ -45,7 +45,7 @@ openai = "openai.cli:main"
[project.optional-dependencies]
realtime = ["websockets >= 13, < 15"]
datalib = ["numpy >= 1", "pandas >= 1.2.3", "pandas-stubs >= 1.1.0.11"]
-audio = ["sounddevice>=0.5.1", "numpy>=2.0.2"]
+voice_helpers = ["sounddevice>=0.5.1", "numpy>=2.0.2"]
[tool.rye]
managed = true