videosdk-plugins-openai 0.0.21__tar.gz → 0.0.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of videosdk-plugins-openai might be problematic. Click here for more details.
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/PKG-INFO +2 -2
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/pyproject.toml +1 -1
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/realtime_api.py +5 -4
- videosdk_plugins_openai-0.0.22/videosdk/plugins/openai/version.py +1 -0
- videosdk_plugins_openai-0.0.21/videosdk/plugins/openai/version.py +0 -1
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/.gitignore +0 -0
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/README.md +0 -0
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/__init__.py +0 -0
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/llm.py +0 -0
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/stt.py +0 -0
- {videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/tts.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: videosdk-plugins-openai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.22
|
|
4
4
|
Summary: VideoSDK Agent Framework plugin for OpenAI services
|
|
5
5
|
Author: videosdk
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -13,7 +13,7 @@ Classifier: Topic :: Multimedia :: Video
|
|
|
13
13
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
14
|
Requires-Python: >=3.11
|
|
15
15
|
Requires-Dist: openai[realtime]>=1.68.2
|
|
16
|
-
Requires-Dist: videosdk-agents>=0.0.
|
|
16
|
+
Requires-Dist: videosdk-agents>=0.0.22
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# VideoSDK OpenAI Plugin
|
|
@@ -45,9 +45,9 @@ DEFAULT_INPUT_AUDIO_TRANSCRIPTION = InputAudioTranscription(
|
|
|
45
45
|
DEFAULT_TOOL_CHOICE = "auto"
|
|
46
46
|
|
|
47
47
|
OpenAIEventTypes = Literal[
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
48
|
+
"user_speech_started",
|
|
49
|
+
"text_response",
|
|
50
|
+
"error"
|
|
51
51
|
]
|
|
52
52
|
DEFAULT_VOICE = "alloy"
|
|
53
53
|
DEFAULT_INPUT_AUDIO_FORMAT = "pcm16"
|
|
@@ -305,11 +305,12 @@ class OpenAIRealtime(RealtimeBaseModel[OpenAIEventTypes]):
|
|
|
305
305
|
await self._handle_text_done(data)
|
|
306
306
|
|
|
307
307
|
except Exception as e:
|
|
308
|
-
self.
|
|
308
|
+
self.emit("error", f"Error handling event {event_type}: {str(e)}")
|
|
309
309
|
|
|
310
310
|
async def _handle_speech_started(self, data: dict) -> None:
|
|
311
311
|
"""Handle speech detection start"""
|
|
312
312
|
if "audio" in self.config.modalities:
|
|
313
|
+
self.emit("user_speech_started", {"type": "done"})
|
|
313
314
|
await self.interrupt()
|
|
314
315
|
if self.audio_track:
|
|
315
316
|
self.audio_track.interrupt()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.22"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.21"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/llm.py
RENAMED
|
File without changes
|
{videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/stt.py
RENAMED
|
File without changes
|
{videosdk_plugins_openai-0.0.21 → videosdk_plugins_openai-0.0.22}/videosdk/plugins/openai/tts.py
RENAMED
|
File without changes
|