Skip to content

Commit 329289e

Browse files
committed
fix hallucination
1 parent 4ee7cbd commit 329289e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cli/templates/geo/src/tools/time.tool.ts.hbs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)