OpenAiResponsesModelOptions
Namespace: E2E
public sealed class OpenAiResponsesModelOptionsInheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; init; }Value: string
ApiKeyEnv
Section titled “ApiKeyEnv”public string ApiKeyEnv { get; init; }Environment variable read when ApiKey is empty. Defaults to OPENAI_API_KEY.
Value: string
ApiKeyHeader
Section titled “ApiKeyHeader”public string? ApiKeyHeader { get; init; }The header that carries the key. Null sends Authorization: Bearer.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; init; }The API root; requests go to {BaseUrl}/responses.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Value: IReadOnlyDictionary<string, string>
public required string Model { get; init; }Value: string
PromptCacheHints
Section titled “PromptCacheHints”public bool PromptCacheHints { get; init; }Whether requests carry a prompt-cache routing key, one per system prompt. Upstream sends it to OpenAI and Azure.
Value: bool
Provider
Section titled “Provider”public string Provider { get; init; }The key this client reads in ProviderOptions: openai, or azure for Azure OpenAI.
Value: string
QueryParameters
Section titled “QueryParameters”public IReadOnlyDictionary<string, string>? QueryParameters { get; init; }Value: IReadOnlyDictionary<string, string>
SessionId
Section titled “SessionId”public string? SessionId { get; init; }The routing key for a request with no system prompt, so promptless calls of one session share a cache and other sessions do not. Null hashes the empty prompt.
Value: string
Methods
Section titled “Methods”ResolveApiKey()
Section titled “ResolveApiKey()”public string? ResolveApiKey()Returns: string