diff --git a/jigsawstack/search.py b/jigsawstack/search.py index 0b2af13..b365b03 100644 --- a/jigsawstack/search.py +++ b/jigsawstack/search.py @@ -1,4 +1,4 @@ -from typing import Any, Dict, List, Literal, Optional, Union, cast +from typing import Any, Dict, List, Literal, Union, cast from typing_extensions import NotRequired, TypedDict @@ -57,7 +57,7 @@ class SearchResponse(BaseResponse): The search query that was used """ - ai_overview: Optional[str] + ai_overview: NotRequired[str] """ AI-generated overview/summary of the search results or deep research results if enabled @@ -242,7 +242,7 @@ def __init__( def search(self, params: SearchParams) -> SearchResponse: query = params["query"] - ai_overview = params.get("ai_overview", "True") + ai_overview = params.get("ai_overview", "False") safe_search = params.get("safe_search", "moderate") spell_check = params.get("spell_check", "True") @@ -314,7 +314,7 @@ def __init__( async def search(self, params: SearchParams) -> SearchResponse: path = "/web/search" query = params["query"] - ai_overview = params.get("ai_overview", "True") + ai_overview = params.get("ai_overview", "False") safe_search = params.get("safe_search", "moderate") spell_check = params.get("spell_check", "True") @@ -343,7 +343,9 @@ async def search(self, params: SearchParams) -> SearchResponse: ).perform_with_content() return resp - async def suggestions(self, params: SearchSuggestionsParams) -> SearchSuggestionsResponse: + async def suggestions( + self, params: SearchSuggestionsParams + ) -> SearchSuggestionsResponse: query = params["query"] path = f"/web/search/suggest?query={query}" resp = await AsyncRequest( diff --git a/jigsawstack/version.py b/jigsawstack/version.py index 28babde..c3936a8 100644 --- a/jigsawstack/version.py +++ b/jigsawstack/version.py @@ -1,4 +1,4 @@ -__version__ = "0.4.2" +__version__ = "0.4.3" def get_version() -> str: diff --git a/setup.py b/setup.py index 91e34b0..03586ca 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="jigsawstack", - version="0.4.2", + version="0.4.3", description="JigsawStack - The AI SDK for Python", long_description=open("README.md", encoding="utf8").read(), long_description_content_type="text/markdown",