Skip to content

OpenAiResponsesModelOptions

Namespace: E2E

public sealed class OpenAiResponsesModelOptions

Inheritance: object

View source

public string? ApiKey { get; init; }

Value: string

View source

public string ApiKeyEnv { get; init; }

Environment variable read when ApiKey is empty. Defaults to OPENAI_API_KEY.

Value: string

View source

public string? ApiKeyHeader { get; init; }

The header that carries the key. Null sends Authorization: Bearer.

Value: string

View source

public string BaseUrl { get; init; }

The API root; requests go to {BaseUrl}/responses.

Value: string

View source

public IReadOnlyDictionary<string, string>? Headers { get; init; }

Value: IReadOnlyDictionary<string, string>

View source

public required string Model { get; init; }

Value: string

View source

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

View source

public string Provider { get; init; }

The key this client reads in ProviderOptions: openai, or azure for Azure OpenAI.

Value: string

View source

public IReadOnlyDictionary<string, string>? QueryParameters { get; init; }

Value: IReadOnlyDictionary<string, string>

View source

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

View source

public string? ResolveApiKey()

Returns: string

View source