mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
tools: Make time-zones more case-insensitive (#55288)
gpt-5.5 likes to call the `now` tool with upper-case "UTC", leading to this error: > Failed to receive tool input: tool input was not fully received Release Notes: - N/A
This commit is contained in:
@@ -13,8 +13,10 @@ use crate::{AgentTool, ToolCallEventStream, ToolInput};
|
||||
#[schemars(inline)]
|
||||
pub enum Timezone {
|
||||
/// Use UTC for the datetime.
|
||||
#[serde(alias = "UTC", alias = "Utc")]
|
||||
Utc,
|
||||
/// Use local time for the datetime.
|
||||
#[serde(alias = "LOCAL", alias = "Local")]
|
||||
Local,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user