Skip to content

feat(chat): remove chat/complete (endpoint removed from the gateway) - #21

Merged
Domantas merged 2 commits into
mainfrom
feat/remove-chat-complete
Sep 29, 2026
Merged

Domantas merged 2 commits into
mainfrom
feat/remove-chat-complete

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

Removes the SDK methods for the two gateway routes that no longer exist: POST /{version}/chat/complete (API) and POST /{version}/account/chat/complete (Hub).

Breaking: client.api.chat (ask_chat) and client.hub.account.ask_chat() are removed, sync and async.

Tests: uv run pytest 625 passed · make typecheck (mypy) clean · make lint (ruff) clean.

Regeneration drift kept (real contract since the last run): references/api_dtos.py, references/hub_dtos.py and references/hub2.dtos.ts re-fetched from the gateway (reference only, not shipped). Module files edited by hand — scripts/generate_endpoints.py named in the README is not in the repo.

Expected release: v3.1.0 → v3.2.0 — the preset releases breaking changes as a minor until the public launch.

Gateway: campaign ai/two-audiences (item api-chat-cleanup) deleted both unauthenticated routes. Types were generated from the Community Hub (:5001) and Community API (:5002) hosts of that branch.

Task file (local): sdks/docs/tasks/sdk-chat-route-removal.md · tracker step 2a.

Not merged — for review.

🤖 Generated with Claude Code

Domantas and others added 2 commits September 28, 2026 20:37
The gateway no longer serves the unauthenticated chat completion routes.
Removes the api `chat` module (ChatModule / AsyncChatModule, `client.api.chat`,
`NorbixApi.chat` / `.Chat`) and `hub.account.ask_chat` (sync + async), with
their tests and docs pages / index rows.

Module files are hand-maintained (scripts/generate_endpoints.py was removed
from the repo), so edited by hand. references/*.dtos are left untouched.

Breaking: `client.api.chat.ask_chat()` and `client.hub.account.ask_chat()` are gone; callers must stop using them (no replacement endpoint).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… without chat/complete

references/api_dtos.py (/types/python, API :5002), references/hub_dtos.py
(/types/python, Hub :5001) and references/hub2.dtos.ts (/types/typescript,
Hub :5001) re-fetched from the Community hosts of gateway branch
ai/two-audiences. Reference only — not shipped, not imported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit 02e300e into main Sep 29, 2026
9 checks passed
@Domantas
Domantas deleted the feat/remove-chat-complete branch September 29, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant