File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
cli/templates/geo/src/tools Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ export const time = pickaxe.tool({
3737 console.info(`Looking up coordinates and timezone for: ${input.city}`);
3838 const geocodingUrl = `https://geocoding-api.open-meteo.com/v1/search?name=${encodeURIComponent(input.city)}& count=1& language=en& format=json`;
3939
40- const geocodingResponse = await fetch(geocodingUrl, {
41- timeout: 8000
42- });
40+ const geocodingResponse = await fetch(geocodingUrl);
4341
4442 if (!geocodingResponse.ok) {
4543 throw new Error(`Geocoding API returned ${geocodingResponse.status}`);
@@ -59,9 +57,7 @@ export const time = pickaxe.tool({
5957 // Step 2: Get current time for the timezone using WorldTimeAPI
6058 try {
6159 const timeUrl = `https://worldtimeapi.org/api/timezone/${timezone}`;
62- const timeResponse = await fetch(timeUrl, {
63- timeout: 5000
64- });
60+ const timeResponse = await fetch(timeUrl);
6561
6662 if (timeResponse.ok) {
6763 const timeData = await timeResponse.json();
You can’t perform that action at this time.
0 commit comments