Base URL
DDTokens provides an OpenAI-compatible API address. Most clients only require a base_url and an API key.
Recommended Address
Use this address by default:
text
https://apiddt.com/v1OpenAI SDKs usually call this setting baseURL, base_url, or OPENAI_API_BASE.
Request Path
For the Chat Completions protocol, the request path is:
text
https://apiddt.com/v1/chat/completionsIf the client asks for a Base URL, enter only https://apiddt.com/v1. Do not append /chat/completions again.
Timeouts and Long-Running Tasks
Long output, streaming responses, tool calls, and slow upstream models can all increase request time. For production environments:
- Configure a reasonable client timeout.
- Use exponential backoff for retryable errors.
- Record the request ID, model name, duration, and error response for troubleshooting.
If DDTokens later provides fallback endpoints or dedicated long-connection endpoints, their addresses, use cases, and switching rules should be documented here.
Environment Variable Example
bash
export DDDT_BASE_URL="https://apiddt.com/v1"
export DDDT_API_KEY="sk-your-key-here"