# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from dataclasses import dataclass

import httpx
from generated.chat_api_client.chat_api.clients.rooms_client import RoomsApiClient


@dataclass(frozen=True)
class ApiClients:
    rooms_client: RoomsApiClient


def create_api_clients(
    client: httpx.AsyncClient,
    *,
    base_url: str,
) -> ApiClients:
    normalized_base_url = base_url.rstrip("/")
    return ApiClients(
        rooms_client=RoomsApiClient(
            client,
            normalized_base_url,
        ),
    )
