HttpModelOptions
Parameters and properties
Section titled “Parameters and properties”baseUrlRequiredstringAbsolute HTTP(S) base URL including its version prefix, such as https://api.openai.com/v1; chat/completions or responses is appended. Credentials, query or fragment fail with code configuration, and redirects are refused.apiKeyRequiredstring | falseExplicit bearer API key, or false for an unauthenticated endpoint. No environment variable or account login is read automatically.timeoutMsOptionalnumber | undefinedRequest deadline in milliseconds, default 120000, at most 2147483647. While streaming it restarts on each received chunk; expiry rejects with code timeout.maxResponseBytesOptionalnumber | undefinedMaximum response body in bytes after decompression, default 8388608 (8 MiB); a streamed response counts all its chunks. A larger response fails with code response.