From 9f687a521628f3ffa240b3a69305ed2ebf34d91d Mon Sep 17 00:00:00 2001 From: Vinay Varma Date: Wed, 10 Dec 2025 18:46:08 +0100 Subject: [PATCH 1/2] fix: rename web_search find action type --- async-openai/src/types/responses/response.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/async-openai/src/types/responses/response.rs b/async-openai/src/types/responses/response.rs index 374d1750..4a32dddb 100644 --- a/async-openai/src/types/responses/response.rs +++ b/async-openai/src/types/responses/response.rs @@ -1702,8 +1702,8 @@ pub enum WebSearchToolCallAction { Search(WebSearchActionSearch), /// Action type "open_page" - Opens a specific URL from search results. OpenPage(WebSearchActionOpenPage), - /// Action type "find": Searches for a pattern within a loaded page. - Find(WebSearchActionFind), + /// Action type "find_in_page": Searches for a pattern within a loaded page. + FindInPage(WebSearchActionFind), } /// Web search tool call output. From 0d42abe590ac7fb3e24b0b1578d4427ec2aec34b Mon Sep 17 00:00:00 2001 From: Vinay Varma Date: Tue, 16 Dec 2025 13:47:52 +0100 Subject: [PATCH 2/2] fix: allow empty name in ResponseFormatJsonSchema --- async-openai/src/types/shared/response_format.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/async-openai/src/types/shared/response_format.rs b/async-openai/src/types/shared/response_format.rs index d70b6cb2..7f7e6263 100644 --- a/async-openai/src/types/shared/response_format.rs +++ b/async-openai/src/types/shared/response_format.rs @@ -19,6 +19,7 @@ pub struct ResponseFormatJsonSchema { #[serde(skip_serializing_if = "Option::is_none")] pub description: Option, /// The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64. + #[serde(default)] pub name: String, /// The schema for the response format, described as a JSON Schema object. /// Learn how to build JSON schemas [here](https://json-schema.org/).