fix typos in src/
This commit is contained in:
parent
65264b6b8a
commit
e9f6d08260
4 changed files with 4 additions and 4 deletions
|
|
@ -670,7 +670,7 @@ class RunImpl:
|
||||||
elif isinstance(item, HandoffCallItem):
|
elif isinstance(item, HandoffCallItem):
|
||||||
event = RunItemStreamEvent(item=item, name="handoff_requested")
|
event = RunItemStreamEvent(item=item, name="handoff_requested")
|
||||||
elif isinstance(item, HandoffOutputItem):
|
elif isinstance(item, HandoffOutputItem):
|
||||||
event = RunItemStreamEvent(item=item, name="handoff_occured")
|
event = RunItemStreamEvent(item=item, name="handoff_occurred")
|
||||||
elif isinstance(item, ToolCallItem):
|
elif isinstance(item, ToolCallItem):
|
||||||
event = RunItemStreamEvent(item=item, name="tool_called")
|
event = RunItemStreamEvent(item=item, name="tool_called")
|
||||||
elif isinstance(item, ToolCallOutputItem):
|
elif isinstance(item, ToolCallOutputItem):
|
||||||
|
|
|
||||||
|
|
@ -757,7 +757,7 @@ class _Converter:
|
||||||
elif isinstance(c, dict) and c.get("type") == "input_file":
|
elif isinstance(c, dict) and c.get("type") == "input_file":
|
||||||
raise UserError(f"File uploads are not supported for chat completions {c}")
|
raise UserError(f"File uploads are not supported for chat completions {c}")
|
||||||
else:
|
else:
|
||||||
raise UserError(f"Unknonw content: {c}")
|
raise UserError(f"Unknown content: {c}")
|
||||||
return out
|
return out
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ class OpenAIResponsesModel(Model):
|
||||||
)
|
)
|
||||||
|
|
||||||
if _debug.DONT_LOG_MODEL_DATA:
|
if _debug.DONT_LOG_MODEL_DATA:
|
||||||
logger.debug("LLM responsed")
|
logger.debug("LLM responded")
|
||||||
else:
|
else:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"LLM resp:\n"
|
"LLM resp:\n"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class RunItemStreamEvent:
|
||||||
name: Literal[
|
name: Literal[
|
||||||
"message_output_created",
|
"message_output_created",
|
||||||
"handoff_requested",
|
"handoff_requested",
|
||||||
"handoff_occured",
|
"handoff_occurred",
|
||||||
"tool_called",
|
"tool_called",
|
||||||
"tool_output",
|
"tool_output",
|
||||||
"reasoning_item_created",
|
"reasoning_item_created",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue