Skip to content

Commit

Permalink
feat(tool): update openMeteo default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Sep 5, 2024
1 parent 1a7a1c8 commit ad4bb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/weather/openMeteo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class OpenMeteoTool extends Tool<JSONToolOutput<Response>, ToolOptions, T
.strip(),
),
elevation: z.number().nullish(),
timezone: z.string(),
timezone: z.string().default(Intl.DateTimeFormat().resolvedOptions().timeZone),
start_date: z
.string()
.date()
Expand All @@ -89,7 +89,7 @@ export class OpenMeteoTool extends Tool<JSONToolOutput<Response>, ToolOptions, T
.date()
.describe("Date Format: YYYY-MM-DD (omit the field for the current date)")
.nullish(),
forecast_days: z.number().int().min(0).max(16).default(7),
forecast_days: z.number().int().min(0).max(16).default(1),
past_days: z.number().int().min(0).max(92).default(0),
temperature_unit: z.enum(["celsius", "fahrenheit"]).default("celsius"),
})
Expand Down

0 comments on commit ad4bb21

Please sign in to comment.