Skip to content

Commit

Permalink
Comment out AssistantResponseFormat references
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulianoDolceTalianoSantoro committed Aug 12, 2024
1 parent 867df29 commit f8652b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from openai.resources.beta.assistants import Assistant
from openai.resources.beta.threads.messages import Message
from openai.resources.beta.threads.runs.runs import Run
from openai.types.beta import AssistantResponseFormat
# from openai.types.beta import AssistantResponseFormat
from openai.types.beta.assistant_tool import CodeInterpreterTool, FileSearchTool
from openai.types.beta.threads.image_file_content_block import ImageFileContentBlock
from openai.types.beta.threads.runs import RunStep
Expand Down Expand Up @@ -317,7 +317,7 @@ def _create_open_ai_assistant_definition(cls, assistant: "Assistant") -> dict[st

enable_json_response = (
hasattr(assistant, "response_format")
and isinstance(assistant.response_format, AssistantResponseFormat)
# and isinstance(assistant.response_format, AssistantResponseFormat)
and assistant.response_format.type == "json_object"
)

Expand Down

0 comments on commit f8652b8

Please sign in to comment.