dagster-openai 0.26.1__tar.gz → 0.26.3__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 dagster-openai might be problematic. Click here for more details.
- {dagster-openai-0.26.1/dagster_openai.egg-info → dagster-openai-0.26.3}/PKG-INFO +1 -1
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai/resources.py +3 -2
- dagster-openai-0.26.3/dagster_openai/version.py +1 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3/dagster_openai.egg-info}/PKG-INFO +1 -1
- dagster-openai-0.26.3/dagster_openai.egg-info/requires.txt +2 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/setup.py +1 -1
- dagster-openai-0.26.1/dagster_openai/version.py +0 -1
- dagster-openai-0.26.1/dagster_openai.egg-info/requires.txt +0 -2
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/LICENSE +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/MANIFEST.in +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/README.md +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai/__init__.py +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai/py.typed +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai.egg-info/SOURCES.txt +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai.egg-info/dependency_links.txt +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai.egg-info/not-zip-safe +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai.egg-info/top_level.txt +0 -0
- {dagster-openai-0.26.1 → dagster-openai-0.26.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dagster-openai
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.3
|
|
4
4
|
Summary: An OpenAI client resource for interacting with OpenAI API.
|
|
5
5
|
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-openai
|
|
6
6
|
Author: Dagster Labs
|
|
@@ -15,6 +15,7 @@ from dagster import (
|
|
|
15
15
|
)
|
|
16
16
|
from dagster._annotations import public
|
|
17
17
|
from dagster._core.errors import DagsterInvariantViolationError
|
|
18
|
+
from dagster._core.execution.context.asset_check_execution_context import AssetCheckExecutionContext
|
|
18
19
|
from openai import Client
|
|
19
20
|
from pydantic import Field, PrivateAttr
|
|
20
21
|
|
|
@@ -224,7 +225,7 @@ class OpenAIResource(ConfigurableResource):
|
|
|
224
225
|
@public
|
|
225
226
|
@contextmanager
|
|
226
227
|
def get_client(
|
|
227
|
-
self, context: Union[AssetExecutionContext, OpExecutionContext]
|
|
228
|
+
self, context: Union[AssetExecutionContext, AssetCheckExecutionContext, OpExecutionContext]
|
|
228
229
|
) -> Generator[Client, None, None]:
|
|
229
230
|
"""Yields an ``openai.Client`` for interacting with the OpenAI API.
|
|
230
231
|
|
|
@@ -360,7 +361,7 @@ class OpenAIResource(ConfigurableResource):
|
|
|
360
361
|
|
|
361
362
|
def _get_client(
|
|
362
363
|
self,
|
|
363
|
-
context: Union[AssetExecutionContext, OpExecutionContext],
|
|
364
|
+
context: Union[AssetExecutionContext, AssetCheckExecutionContext, OpExecutionContext],
|
|
364
365
|
asset_key: Optional[AssetKey] = None,
|
|
365
366
|
) -> Generator[Client, None, None]:
|
|
366
367
|
if isinstance(context, AssetExecutionContext):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.26.3"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dagster-openai
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.3
|
|
4
4
|
Summary: An OpenAI client resource for interacting with OpenAI API.
|
|
5
5
|
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-openai
|
|
6
6
|
Author: Dagster Labs
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.26.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dagster-openai-0.26.1 → dagster-openai-0.26.3}/dagster_openai.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|