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. 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/).