AutoGen errors / Config
TypeError: create() takes 1 argument(s) but 2 were given
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.
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