From 8437864cb54b39b0d51bf6b4d2274ed72447a15f Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 07:45:59 +0000 Subject: [PATCH 1/2] Patched patchwork/common/client/llm/google_.py --- patchwork/common/client/llm/google_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/common/client/llm/google_.py b/patchwork/common/client/llm/google_.py index 62b48e5ec..8b3abe2aa 100644 --- a/patchwork/common/client/llm/google_.py +++ b/patchwork/common/client/llm/google_.py @@ -264,7 +264,7 @@ def chat_completion( max_tokens: Optional[int] | NotGiven = NOT_GIVEN, n: Optional[int] | NotGiven = NOT_GIVEN, presence_penalty: Optional[float] | NotGiven = NOT_GIVEN, - response_format: str | completion_create_params.ResponseFormat | NotGiven = NOT_GIVEN, + response_format: dict | completion_create_params.ResponseFormat | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str]] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tools: Iterable[ChatCompletionToolParam] | NotGiven = NOT_GIVEN, From 8389e20c8026cbf2906445a011d416270fdfaa2e Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 07:45:59 +0000 Subject: [PATCH 2/2] Patched patchwork/common/client/llm/protocol.py --- patchwork/common/client/llm/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/common/client/llm/protocol.py b/patchwork/common/client/llm/protocol.py index 3e47b38c9..21c5acfed 100644 --- a/patchwork/common/client/llm/protocol.py +++ b/patchwork/common/client/llm/protocol.py @@ -138,7 +138,7 @@ def chat_completion( max_tokens: Optional[int] | NotGiven = NOT_GIVEN, n: Optional[int] | NotGiven = NOT_GIVEN, presence_penalty: Optional[float] | NotGiven = NOT_GIVEN, - response_format: str | completion_create_params.ResponseFormat | NotGiven = NOT_GIVEN, + response_format: dict | completion_create_params.ResponseFormat | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str]] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tools: Iterable[ChatCompletionToolParam] | NotGiven = NOT_GIVEN,