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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-openai
3
- Version: 0.26.1
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.1
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
@@ -0,0 +1,2 @@
1
+ dagster==1.10.3
2
+ openai
@@ -31,7 +31,7 @@ setup(
31
31
  ],
32
32
  packages=find_packages(exclude=["dagster_openai_tests*"]),
33
33
  install_requires=[
34
- "dagster==1.10.1",
34
+ "dagster==1.10.3",
35
35
  "openai",
36
36
  ],
37
37
  zip_safe=False,
@@ -1 +0,0 @@
1
- __version__ = "0.26.1"
@@ -1,2 +0,0 @@
1
- dagster==1.10.1
2
- openai
File without changes