Skip to main content

Overview

AutoGen can use AI Sonar through OpenAIChatCompletionClient, the same OpenAI-compatible client path it uses for other custom Chat Completions endpoints.
Type: Agent FrameworkPrimary Path: OpenAI-compatible chat completionsSupport Confidence: Supported custom endpoint path

Installation

Environment

YAML Model Config

Use AI Sonar’s /v1 endpoint as base_url:

Python Client

Endpoint Notes

AutoGen’s OpenAI extension expects the OpenAI-compatible request shape. For provider-native features such as Anthropic Messages or Gemini generateContent, use AI Sonar’s native endpoints from a client that supports those protocols directly.