Skip to content

samples: DaoXE OpenAI-compatible gateway via LiteLlm#6400

Open
seven7763 wants to merge 1 commit into
google:mainfrom
seven7763:samples/daoxe-openai-compatible-litellm
Open

samples: DaoXE OpenAI-compatible gateway via LiteLlm#6400
seven7763 wants to merge 1 commit into
google:mainfrom
seven7763:samples/daoxe-openai-compatible-litellm

Conversation

@seven7763

Copy link
Copy Markdown

Summary

Adds a contributing sample showing how to run an ADK agent against an OpenAI-compatible multi-model gateway using the existing `LiteLlm` wrapper.

  • `contributing/samples/models/hello_world_daoxe/` (agent + main + README)
  • Env: `OPENAI_API_KEY` + `OPENAI_API_BASE=https://daoxe.com/v1\`
  • Model: `LiteLlm(model="openai/")`

Same pattern as the Ollama README’s “Using openai provider” path.

Notes

  • Account-scoped model IDs (no static catalog)
  • Chat Completions via LiteLLM OpenAI provider
  • DaoXE is not available in mainland China
  • Contributor is affiliated with DaoXE

Test plan

  • Sample imports cleanly
  • Optional: `adk web` / main with real DaoXE key + model ID

Add hello_world_daoxe sample using LiteLlm(model=openai/<account-id>)
with OPENAI_API_BASE=https://daoxe.com/v1. Account-scoped model IDs.

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

google-cla Bot commented Jul 15, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@adk-bot adk-bot added the models [Component] This issue is related to model support label Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

models [Component] This issue is related to model support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants