docstr: Create a new client instance re-using the same options given to the current client with optional overriding.
docstr_tok: ["Create","a","new","client","instance","re-using","the","same","options","given","to","the","current","client","with","optional","overriding","."]
code: def copy(
      self,
      *,
      api_key: str | None = None,
      organization: str | None = None,
      api_version: str | None = None,
      azure_ad_token: str | None = None,
      azure_ad_token_provider: AzureADTokenProvider | None = None,
      base_url: str | httpx.URL | None = None,
      timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
      http_client: httpx.Client | None = None,
      max_retries: int | NotGiven = NOT_GIVEN,
      default_headers: Mapping[str, str] | None = None,
      set_default_headers: Mapping[str, str] | None = None,
      default_query: Mapping[str, object] | None = None,
      set_default_query: Mapping[str, object] | None = None,
      _extra_kwargs: Mapping[str, Any] = {},
  ) -> Self:
      """
      Create a new client instance re-using the same options given to the current client with optional overriding.
      """
      return super().copy(
          api_key=api_key,
          organization=organization,
          base_url=base_url,
          timeout=timeout,
          http_client=http_client,
          max_retries=max_retries,
          default_headers=default_headers,
          set_default_headers=set_default_headers,
          default_query=default_query,
          set_default_query=set_default_query,
          _extra_kwargs={
              "api_version": api_version or self._api_version,
              "azure_ad_token": azure_ad_token or self._azure_ad_token,
              "azure_ad_token_provider": azure_ad_token_provider
              or self._azure_ad_token_provider,
              **_extra_kwargs,
          },
      )
  
imports: from __future__ import annotations
  import os
  import inspect
  from typing import Any, Union, Mapping, TypeVar, Callable, Awaitable, overload
  from typing_extensions import Self, override
  import httpx
  from .._types import NOT_GIVEN, Omit, Timeout, NotGiven
  from .._utils import is_given, is_mapping
  from .._client import OpenAI, AsyncOpenAI
  from .._models import FinalRequestOptions
  from .._streaming import Stream, AsyncStream
  from .._exceptions import OpenAIError
  from .._base_client import DEFAULT_MAX_RETRIES, BaseClient
label_desc: Use image node_id 5 for calling the AzureOpenAI obj's underlying member method code with example usage: obj.copy() and returns: super