docs(models): add DaoXE multi-protocol gateway custom endpoint example#2350
docs(models): add DaoXE multi-protocol gateway custom endpoint example#2350seven7763 wants to merge 1 commit into
Conversation
Document using DaoXE via Stagehand custom OpenAI-compatible baseURL (https://daoxe.com/v1) with account-scoped model IDs and DAOXE_API_KEY. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
|
This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run. |
There was a problem hiding this comment.
No issues found across 1 file
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant User as Stagehand User
participant Config as Stagehand Config
participant SDK as Stagehand SDK
participant DaoXE as DaoXE Gateway
participant Model as LLM Model
Note over User,Model: Custom Endpoint Flow with DaoXE
User->>Config: Set env: "BROWSERBASE"
User->>Config: Set model.baseURL: "https://daoxe.com/v1"
User->>Config: Set model.apiKey: process.env.DAOXE_API_KEY
User->>Config: Set model.modelName: "openai/<your-daoxe-model-id>"
User->>SDK: stagehand.init()
SDK->>Config: Read model configuration
SDK->>Config: Extract baseURL, apiKey, modelName
Note over SDK,DaoXE: Stagehand uses OpenAI-compatible route
SDK->>DaoXE: POST /v1/chat/completions
DaoXE->>DaoXE: Authenticate via API key
DaoXE->>DaoXE: Route to account-specific model
alt Model available in region
DaoXE->>Model: Forward request
Model-->>DaoXE: Response
DaoXE-->>SDK: OpenAI-compatible response
else Model unavailable in China
DaoXE-->>SDK: Error (service not available)
end
SDK->>SDK: Parse structured output if supported
SDK-->>User: Return result from act/extract/observe
Note over User,DaoXE: DAOXE_API_KEY required in .env
why
Document how to use DaoXE with Stagehand through the existing Custom Endpoints pattern (
model.baseURL+ account API key).what changed
packages/docs/v3/configuration/models.mdxhttps://daoxe.com/v1openai/<your-daoxe-model-id>(exact account-scoped ID from the DaoXE dashboard; no hardcoded public model list)DAOXE_API_KEYto the troubleshooting env tableDaoXE is a multi-model multi-protocol API gateway. I am a DaoXE maintainer. Examples: https://github.com/seven7763/DaoXE-AI
test plan
model: { modelName, apiKey, baseURL }pattern used for OpenAI custom endpointshttps://daoxe.com/v1with a real key + account model IDSummary by cubic
Add a DaoXE custom endpoint example in the models docs so users can connect via an OpenAI‑compatible base URL. Also document
DAOXE_API_KEYand note support for multi‑protocol gateways.model.baseURL(https://daoxe.com/v1),modelNameopenai/<your-daoxe-model-id>, andDAOXE_API_KEY.Stagehanduses the OpenAI-compatible route; DaoXE also supports Anthropic Messages.DAOXE_API_KEYto the env table, and noted DaoXE is unavailable in mainland China.Written for commit e9810a6. Summary will update on new commits.