[lint] improve ruff check (#11922)
Co-authored-by: Xiaoyu Zhang <35585791+BBuf@users.noreply.github.com>
This commit is contained in:
co-authored by
Xiaoyu Zhang
parent
590bc4b7a7
commit
9d61205dac
@@ -14,6 +14,7 @@ from typing import TYPE_CHECKING, Any, AsyncGenerator, AsyncIterator, Optional,
|
||||
|
||||
import jinja2
|
||||
import openai.types.responses as openai_responses_types
|
||||
import orjson
|
||||
from fastapi import Request
|
||||
from fastapi.responses import ORJSONResponse
|
||||
from openai.types.responses import (
|
||||
@@ -1063,7 +1064,7 @@ class OpenAIServingResponses(OpenAIServingChat):
|
||||
):
|
||||
function_name = previous_item.recipient[len("browser.") :]
|
||||
action = None
|
||||
parsed_args = ororjson.loads(previous_item.content[0].text)
|
||||
parsed_args = orjson.loads(previous_item.content[0].text)
|
||||
if function_name == "search":
|
||||
action = openai_responses_types.response_function_web_search.ActionSearch(
|
||||
type="search",
|
||||
|
||||
Reference in New Issue
Block a user