Skip to content

docs(server): show OpenAI client base_url + multi-model gateway tip - #2354

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

docs(server): show OpenAI client base_url + multi-model gateway tip#2354
seven7763 wants to merge 1 commit into
abetlen:mainfrom
seven7763:docs/openai-compatible-gateway-example

Conversation

@seven7763

Copy link
Copy Markdown

Summary

The OpenAI-compatible server docs described how to start the server but did not show a minimal OpenAI Python client example.

This PR adds:

  • Client snippet with base_url=\"http://localhost:8000/v1\" in README + docs/server.md
  • A short tip that the same base_url pattern works with OpenAI-compatible multi-model gateways (e.g. DaoXE at https://api.daoxe.com/v1) when not self-hosting

Docs only — no runtime behavior changes.

Test plan

  • Snippet matches server default host/port
  • /v1 path is correct for chat completions
  • Tip is clearly optional / non-blocking

Add a concrete OpenAI Python client example for the local server and note
that the same base_url pattern works with OpenAI-compatible multi-model
gateways such as DaoXE (https://api.daoxe.com/v1).

Docs only — no runtime behavior changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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