dagster-openai 0.26.1__py3-none-any.whl → 0.26.2__py3-none-any.whl

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.

@@ -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):
dagster_openai/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.26.1"
1
+ __version__ = "0.26.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dagster-openai
3
- Version: 0.26.1
3
+ Version: 0.26.2
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
@@ -12,6 +12,6 @@ Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
13
  Classifier: Operating System :: OS Independent
14
14
  License-File: LICENSE
15
- Requires-Dist: dagster ==1.10.1
15
+ Requires-Dist: dagster ==1.10.2
16
16
  Requires-Dist: openai
17
17
 
@@ -0,0 +1,8 @@
1
+ dagster_openai/__init__.py,sha256=ErCapqG5Po_PhWCQHtz7Qo9xTHoC_g5A8WjY-CrOpxk,298
2
+ dagster_openai/resources.py,sha256=1UwdiBORJ_uF58DP2lTqoX8VaXPjQ152Elmq9EUHvnY,15438
3
+ dagster_openai/version.py,sha256=Crq5hftgS1Lj7H-8uxyxs5fX6lta4LLNjycaIacOoKo,23
4
+ dagster_openai-0.26.2.dist-info/LICENSE,sha256=HTQpxmWIpPec-pUSMBAj0wR44OnVdRmrWygQ-GUuVzQ,11349
5
+ dagster_openai-0.26.2.dist-info/METADATA,sha256=hQKULSIMk50eBsXHtR64YEsJbWp41irvGknINHolCOM,644
6
+ dagster_openai-0.26.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
+ dagster_openai-0.26.2.dist-info/top_level.txt,sha256=-66JR-jWfULrYSXUk2AfOdXl8cQyyldzBvBmEQdKn9o,15
8
+ dagster_openai-0.26.2.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- dagster_openai/__init__.py,sha256=ErCapqG5Po_PhWCQHtz7Qo9xTHoC_g5A8WjY-CrOpxk,298
2
- dagster_openai/resources.py,sha256=0ObX3jHKkCbtvBvwk9CWeiYwv__r0FPnNEnqZqqyi24,15281
3
- dagster_openai/version.py,sha256=u0eTmljUU0kO8AAW-e1ESQ49mK2SuhpCy7eCliBLlDU,23
4
- dagster_openai-0.26.1.dist-info/LICENSE,sha256=HTQpxmWIpPec-pUSMBAj0wR44OnVdRmrWygQ-GUuVzQ,11349
5
- dagster_openai-0.26.1.dist-info/METADATA,sha256=FV3Xz-FVFmZB7PUPM_THIEt9eXz9jtoWTXEPD7HB0hw,644
6
- dagster_openai-0.26.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
7
- dagster_openai-0.26.1.dist-info/top_level.txt,sha256=-66JR-jWfULrYSXUk2AfOdXl8cQyyldzBvBmEQdKn9o,15
8
- dagster_openai-0.26.1.dist-info/RECORD,,