AutoGen errors / Config

TypeError: create() takes 1 argument(s) but 2 were given

platform: AutoGen / category: Config / versions: autogen-ext==0.4.5

Cause

MagenticOneGroupChat passes chat.completions from the standard OpenAI client to create(), but the AsyncAzureOpenAI wrapper uses a different signature that rejects the extra positional argument.

Fix

Pass an AzureOpenAIChatCompletionClient (from autogen_ext.models.openai) instead of extracting service_client.chat.completions directly. Construct it with azure_deployment, azure_endpoint, and api_version. Do not mix the raw Azure OpenAI SDK client with MagenticOne components.

Source thread →

Part of the Automation Error Index — AutoGen errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem