Skip to content

Releases: skymoore/grokipedia-api-sdk

v0.2.0 — migrate get_page to /api/page-preview

Choose a tag to compare

@skymoore skymoore released this 14 Sep 10:14
5b168ba

Fixes the page-retrieval breakage behind skymoore/grokipedia-mcp#10.

Fixed

  • get_page targets the working endpoint. grokipedia.com removed /api/page (404 for every slug); Client.get_page and AsyncClient.get_page now call /api/page-preview.
  • Dead parameters removed. The successor endpoint only honors slug — it ignores includeContent (always returns full content), and sending includeContent=true together with validateLinks=false (the SDK's previous default combo) yields {"found": false}. Both params are dropped from the signature; send get_page(slug) only.
  • Restored AsyncClient.get_constants, which was silently missing (only the sync client had it).
  • Fixed a pre-existing bad assert in test_models (view_count is coerced to int by pydantic).

Breaking change

get_page(slug, include_content=..., validate_links=...) → get_page(slug). Tests updated accordingly; suite is 54/54 green.

Full Changelog: v0.1.3...v0.2.0

v0.1.3

Choose a tag to compare

@skymoore skymoore released this 30 Oct 00:12

Gracefully handle invalid slug passed to get_*

v0.1.1

Choose a tag to compare

@skymoore skymoore released this 29 Oct 22:29

Initial Release