Change8
Error1 reports

Fix FormatNotSupportedError

in AutoGen

Solution

The "FormatNotSupportedError" in autogen often arises when a function like `oai.Completion.create` receives a `format` parameter (e.g., for specifying response type) that it doesn't recognize or support. To fix this, either remove the `format` parameter if it's unnecessary, or change it to a supported format like "json" if the model and function support structured responses. Ensure the specified format is aligned with the capabilities of the underlying language model and the API endpoint being used.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Jul 22, 2025
Last reported:Jul 22, 2025

Need More Help?

View the full changelog and migration guides for AutoGen

View AutoGen Changelog