Skip to content

Commit 4e34160

Browse files
tconley1428cretz
andauthored
Update temporalio/contrib/openai_agents/_temporal_openai_agents.py
Co-authored-by: Chad Retz <[email protected]>
1 parent 8d71668 commit 4e34160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporalio/contrib/openai_agents/_temporal_openai_agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def init_worker_plugin(self, next: temporalio.worker.Plugin) -> None:
259259
def _data_converter(converter: Optional[DataConverter]) -> DataConverter:
260260
if converter is None:
261261
return DataConverter(payload_converter_class=OpenAIPayloadConverter)
262-
elif isinstance(converter.payload_converter, DefaultPayloadConverter):
262+
elif converter.payload_converter_class is DefaultPayloadConverter:
263263
return dataclasses.replace(
264264
converter, payload_converter_class=OpenAIPayloadConverter
265265
)

0 commit comments

Comments
 (0)