Skip to content

docs: add MLflow AI Gateway cookbook example#7511

Open
PattaraS wants to merge 2 commits intomicrosoft:mainfrom
PattaraS:add-mlflow-gateway-integration
Open

docs: add MLflow AI Gateway cookbook example#7511
PattaraS wants to merge 2 commits intomicrosoft:mainfrom
PattaraS:add-mlflow-gateway-integration

Conversation

@PattaraS
Copy link
Copy Markdown

@PattaraS PattaraS commented Apr 2, 2026

Summary

Adds a cookbook recipe showing how to use MLflow AI Gateway as an LLM backend for AutoGen agents.

Files added:

  • python/docs/src/user-guide/core-user-guide/cookbook/mlflow-gateway.ipynb — notebook
  • python/docs/src/user-guide/core-user-guide/cookbook/mlflow_gateway_images/ — 5 screenshots
  • Updated cookbook/index.md toctree

What is MLflow AI Gateway?

MLflow AI Gateway is a database-backed LLM proxy built into the MLflow tracking server (MLflow ≥ 3.0). It exposes an OpenAI-compatible REST API routing to OpenAI, Anthropic, Gemini, Mistral, Bedrock, Ollama, and more — with encrypted secrets management, fallback/retry, traffic splitting, budget tracking, and built-in usage tracing. All configured through the MLflow UI.

Notebook Contents

  • Prerequisites: Start MLflow server, create endpoint via UI (with screenshot)
  • Connection: OpenAIChatCompletionClient with custom base_url pointing to /gateway/openai/v1
  • Single-turn chat example
  • Multi-agent chat with AssistantAgent and RoundRobinGroupChat
  • Streaming example
  • Gateway features with screenshots: budget tracking, usage dashboard, trace list, trace detail

AI Disclosure

This pull request was AI-assisted by Claude. All code and content was reviewed and validated by a human contributor. Screenshots were captured manually from a running MLflow server.

Adds a Jupyter notebook demonstrating how to use MLflow AI Gateway as an
LLM backend for AutoGen agents via OpenAIChatCompletionClient with a
custom base_url pointing to the gateway's OpenAI-compatible endpoint.
@PattaraS PattaraS marked this pull request as draft April 2, 2026 09:17
Add screenshots for endpoint creation, budget tracking, and usage
tracing. Simplify prerequisites to UI-only setup with link to docs
for advanced options.
@PattaraS PattaraS marked this pull request as ready for review April 9, 2026 09:27
@PattaraS
Copy link
Copy Markdown
Author

PattaraS commented Apr 9, 2026

@microsoft-github-policy-service agree company="Databricks"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant