Skip to content

Document OpenAI-compatible base URL configuration#428

Open
cerebrixos wants to merge 1 commit into
MacPaw:mainfrom
cerebrixos:openai-compatible-base-url-docs
Open

Document OpenAI-compatible base URL configuration#428
cerebrixos wants to merge 1 commit into
MacPaw:mainfrom
cerebrixos:openai-compatible-base-url-docs

Conversation

@cerebrixos

Copy link
Copy Markdown

This keeps the default OpenAI endpoint unchanged while documenting how to configure another OpenAI-compatible endpoint through OPENAI_BASE_URL.\n\nWhy this may be useful:\n- local inference servers\n- private model gateways\n- self-hosted routers\n- observability and enterprise control planes\n\nThe example uses the existing Configuration fields and does not add a provider-specific integration.

@nezhyborets

Copy link
Copy Markdown
Collaborator

Hi @cerebrixos, thanks for the contribution!
Do you mean you want to show that URL string and the token could be retrieve from ProcessInfo.processInfo.environment before passing to Configuration.init?

@cerebrixos

Copy link
Copy Markdown
Author

Yes exactly — the idea is to show that Configuration already supports a custom base URL, so users can point it at any OpenAI-compatible endpoint by reading OPENAI_BASE_URL from the environment (or hardcoding it). No new API surface needed — just a documentation example showing the existing host parameter in Configuration.init can be set to a non-OpenAI URL. Happy to adjust the example to explicitly use ProcessInfo.processInfo.environment["OPENAI_BASE_URL"] if that makes the intent clearer.

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.

3 participants