def get_ai_foundry_client()

in Autogen_v0.4/common/azure_openai_imports.py [0:0]


def get_ai_foundry_client() -> AzureAIChatCompletionClient:
    api_key = os.getenv("AI_FOUNDRY_MODEL_ENDPOINT_KEY", '')
    return AzureAIChatCompletionClient(
        endpoint=os.environ["AI_FOUNDRY_MODEL_ENDPOINT"],
        credential=AzureKeyCredential(api_key),
        model_info={
            "json_output": True,
            "function_calling": True,
            "vision": False,
            "family": "unknown",
        }
    )