videosdk-plugins-openai 0.0.2__tar.gz → 0.0.4__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.2 → videosdk_plugins_openai-0.0.4}/.gitignore +3 -1
- {videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/PKG-INFO +3 -4
- {videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/pyproject.toml +2 -3
- {videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/videosdk/plugins/openai/realtime_api.py +5 -5
- videosdk_plugins_openai-0.0.4/videosdk/plugins/openai/version.py +1 -0
- videosdk_plugins_openai-0.0.2/videosdk/plugins/openai/version.py +0 -1
- {videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/README.md +0 -0
- {videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/videosdk/plugins/openai/__init__.py +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: videosdk-plugins-openai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: VideoSDK Agent Framework plugin for OpenAI services
|
|
5
5
|
Author: videosdk
|
|
6
|
-
License-Expression: Apache-2.0
|
|
7
6
|
Keywords: ai,audio,openai,video,videosdk
|
|
8
7
|
Classifier: Development Status :: 4 - Beta
|
|
9
8
|
Classifier: Intended Audience :: Developers
|
|
@@ -11,9 +10,9 @@ Classifier: Topic :: Communications :: Conferencing
|
|
|
11
10
|
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
12
11
|
Classifier: Topic :: Multimedia :: Video
|
|
13
12
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
14
|
-
Requires-Python: >=3.
|
|
13
|
+
Requires-Python: >=3.11
|
|
15
14
|
Requires-Dist: openai[realtime]>=1.68.2
|
|
16
|
-
Requires-Dist: videosdk-agents>=0.0.
|
|
15
|
+
Requires-Dist: videosdk-agents>=0.0.6
|
|
17
16
|
Description-Content-Type: text/markdown
|
|
18
17
|
|
|
19
18
|
VideoSDK OpenAI Plugin
|
|
@@ -7,8 +7,7 @@ name = "videosdk-plugins-openai"
|
|
|
7
7
|
dynamic = ["version"]
|
|
8
8
|
description = "VideoSDK Agent Framework plugin for OpenAI services"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
|
|
11
|
-
requires-python = ">=3.9.0"
|
|
10
|
+
requires-python = ">=3.11"
|
|
12
11
|
authors = [{ name = "videosdk"}]
|
|
13
12
|
keywords = ["video", "audio", "ai", "openai", "videosdk"]
|
|
14
13
|
classifiers = [
|
|
@@ -21,7 +20,7 @@ classifiers = [
|
|
|
21
20
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
22
21
|
]
|
|
23
22
|
dependencies = [
|
|
24
|
-
"videosdk-agents>=0.0.
|
|
23
|
+
"videosdk-agents>=0.0.6",
|
|
25
24
|
"openai[realtime]>=1.68.2",
|
|
26
25
|
]
|
|
27
26
|
|
|
@@ -17,12 +17,11 @@ from videosdk.agents import (
|
|
|
17
17
|
get_tool_info,
|
|
18
18
|
build_openai_schema,
|
|
19
19
|
CustomAudioStreamTrack,
|
|
20
|
-
ToolChoice
|
|
20
|
+
ToolChoice,
|
|
21
|
+
RealtimeBaseModel
|
|
21
22
|
)
|
|
22
23
|
|
|
23
24
|
load_dotenv()
|
|
24
|
-
|
|
25
|
-
from agent.realtime_base_model import RealtimeBaseModel
|
|
26
25
|
from openai.types.beta.realtime.session import InputAudioTranscription, TurnDetection
|
|
27
26
|
|
|
28
27
|
OPENAI_BASE_URL = "https://api.openai.com/v1"
|
|
@@ -124,7 +123,7 @@ class OpenAIRealtime(RealtimeBaseModel[OpenAIEventTypes]):
|
|
|
124
123
|
self._session: Optional[OpenAISession] = None
|
|
125
124
|
self._closing = False
|
|
126
125
|
self._instructions: Optional[str] = None
|
|
127
|
-
self._tools: Optional[List[FunctionTool]] =
|
|
126
|
+
self._tools: Optional[List[FunctionTool]] = []
|
|
128
127
|
self.loop = None
|
|
129
128
|
self.audio_track: Optional[CustomAudioStreamTrack] = None
|
|
130
129
|
self._formatted_tools: Optional[List[Dict[str, Any]]] = None
|
|
@@ -521,4 +520,5 @@ class OpenAIRealtime(RealtimeBaseModel[OpenAIEventTypes]):
|
|
|
521
520
|
"""Handle tools_updated event"""
|
|
522
521
|
tools = data.get("tools", [])
|
|
523
522
|
self._tools = tools
|
|
524
|
-
self.
|
|
523
|
+
self.tools_formatted = self._format_tools_for_session(tools)
|
|
524
|
+
self._formatted_tools = self.tools_formatted
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.4"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.2"
|
|
File without changes
|
{videosdk_plugins_openai-0.0.2 → videosdk_plugins_openai-0.0.4}/videosdk/plugins/openai/__init__.py
RENAMED
|
File without changes
|