Skip to content

docs: OpenAI-compatible multi-model gateway example (DaoXE)#2081

Open
seven7763 wants to merge 1 commit into
pydantic:mainfrom
seven7763:docs/openai-compatible-gateway-daoxe
Open

docs: OpenAI-compatible multi-model gateway example (DaoXE)#2081
seven7763 wants to merge 1 commit into
pydantic:mainfrom
seven7763:docs/openai-compatible-gateway-daoxe

Conversation

@seven7763

@seven7763 seven7763 commented Jul 15, 2026

Copy link
Copy Markdown

Summary

Adds a short section to the OpenAI instrumentation docs showing that logfire.instrument_openai() works with OpenAI-compatible multi-model gateways via openai.Client(base_url=...).

Example uses DaoXE (https://daoxe.com/v1).

  • Docs only: docs/integrations/llms/openai.md
  • No SDK/runtime changes

Notes

  • Account-scoped model IDs
  • Chat Completions path
  • DaoXE not available in mainland China
  • Contributor is affiliated with DaoXE

Test plan

  • Docs page renders the new section
  • Optional: run sample with real key + model ID

Review in cubic

Show instrument_openai() with openai.Client(base_url=...) pointed at
https://daoxe.com/v1. Account-scoped model IDs; Chat Completions path.

Signed-off-by: seven7763 <246023385+seven7763@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c036e22-9be6-47ae-941c-ebd51505cf8e

📥 Commits

Reviewing files that changed from the base of the PR and between db9859a and 65d85d5.

📒 Files selected for processing (1)
  • docs/integrations/llms/openai.md
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • pydantic/logfire (manual)
  • pydantic/pydantic-ai (manual)
  • pydantic/platform (auto-detected)
  • pydantic/pydantic (auto-detected)

📝 Walkthrough

Walkthrough

The OpenAI integration documentation adds guidance for using instrument_openai() with OpenAI-compatible gateways. It includes a configured client example, instrumentation instructions, a chat.completions.create() call using an account-scoped model ID, and notes about model ID scoping, supported protocols, and DaoXE contributor disclosure.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main docs change: an OpenAI-compatible multi-model gateway example for DaoXE.
Description check ✅ Passed The description matches the changeset and accurately describes the new OpenAI instrumentation docs section.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@seven7763

Copy link
Copy Markdown
Author

Hi — this has been approved and CI is green. Just a gentle nudge in case it's waiting in the queue. Happy to address anything else if needed. Thanks!

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