Skip to content

DashScopeClient

autogen.beta.config.dashscope.dashscope_client.DashScopeClient #

DashScopeClient(model, api_key=None, base_url=DASHSCOPE_INTL_BASE_URL, streaming=False, create_options=None)

Bases: LLMClient

Source code in autogen/beta/config/dashscope/dashscope_client.py
def __init__(
    self,
    model: str,
    api_key: str | None = None,
    base_url: str = DASHSCOPE_INTL_BASE_URL,
    streaming: bool = False,
    create_options: CreateOptions | None = None,
) -> None:
    self._model = model
    self._api_key = api_key
    self._base_url = base_url
    self._streaming = streaming
    self._create_options = {k: v for k, v in (create_options or {}).items() if v is not None}