diff --git a/.github/chat.png b/.github/chat.png index 2f476f9..c52c198 100644 Binary files a/.github/chat.png and b/.github/chat.png differ diff --git a/internal/tools.txt b/internal/tools.txt index 4b587ef..af7c8ce 100644 --- a/internal/tools.txt +++ b/internal/tools.txt @@ -1 +1 @@ -You have access to web search tools. Use `search_web` with `query` (string) and `num_results` (1-10) to find current information and get result summaries. Use `fetch_contents` with `urls` (array) to read full page content. Use `github_repository` with `owner` (string) and `repo` (string) to get a quick overview of a GitHub repository (repo info, up to 20 branches, top-level files/dirs, and the README) without cloning. Always specify all parameters for each tool call. Call only one tool per response. \ No newline at end of file +You have access to web search tools. Use `search_web` with `query` (string) and `num_results` (1-10) to find current information - when searching for recent/latest information, always include specific dates or years (e.g., "august 2025"). Use `fetch_contents` with `urls` (array) to read full page content from search results or known URLs. Use `github_repository` with `owner` (string) and `repo` (string) to get repository overviews (info, branches, files, README) without cloning. Formulate specific, targeted queries and provide all required parameters. Call only one tool per response. \ No newline at end of file diff --git a/search.go b/search.go index 4930e73..4d4f876 100644 --- a/search.go +++ b/search.go @@ -41,8 +41,8 @@ func GetSearchTools() []openrouter.Tool { }, "num_results": map[string]any{ "type": "integer", - "description": "Number of results to return (1-10). Default 10.", - "minimum": 1, + "description": "Number of results to return (3-10). Default to 6.", + "minimum": 3, "maximum": 10, }, }, diff --git a/static/js/chat.js b/static/js/chat.js index f6a077e..6a466ec 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -87,9 +87,13 @@ window.notify = notify; function updateTitle() { + const title = chatTitle || (messages.length ? "New Chat" : ""); + $title.classList.toggle("hidden", !messages.length); - $titleText.textContent = chatTitle || (messages.length ? "New Chat" : ""); + $titleText.textContent = title; + + document.title = title || "whiskr"; storeValue("title", chatTitle); }