diff --git a/exa.go b/exa.go index aeaa7fc..556badc 100644 --- a/exa.go +++ b/exa.go @@ -134,7 +134,7 @@ func ExaRunSearch(ctx context.Context, args SearchWebArguments) (*ExaResults, er case "month": data["startPublishedDate"] = daysAgo(30) case "year": - data["startPublishedDate"] = daysAgo(356) + data["startPublishedDate"] = daysAgo(365) } req, err := NewExaRequest(ctx, "/search", data) @@ -168,5 +168,5 @@ func ExaRunContents(ctx context.Context, args FetchContentsArguments) (*ExaResul } func daysAgo(days int) string { - return time.Now().Add(time.Duration(days) * 24 * time.Hour).Format(time.DateOnly) + return time.Now().Add(-time.Duration(days) * 24 * time.Hour).Format(time.DateOnly) } diff --git a/search.go b/search.go index 523f004..966a25f 100644 --- a/search.go +++ b/search.go @@ -46,7 +46,7 @@ func GetSearchTools() []openrouter.Tool { "type": "integer", "description": "Number of results to return (3-12). Default is 6.", "minimum": 3, - "maximum": 10, + "maximum": 12, }, "intent": map[string]any{ "type": "string",