Skip to content

feat: async client (httpx.AsyncClient) #1

Description

@ChristopherDond

Expose an async variant of NineRouter using httpx.AsyncClient with the same method surface: await client.chat(...), async for chunk in client.chat_stream(...), etc.

Why: most real apps are async; the sync client is done.

Design notes:

  • Keep the sync client untouched
  • Share request-building logic between sync/async
  • Add mocked tests with respx

Good first issue: no deep gateway knowledge needed, just follow the existing patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions