OpenResponsesOptions
Namespace: Vercel.AI.OpenResponses
public sealed class OpenResponsesOptionsOpen Responses settings. The default origin is the AI Gateway Open Responses route.
Inheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; set; }Explicit key.
Value: string
ApiKeyEnvironmentVariable
Section titled “ApiKeyEnvironmentVariable”public string ApiKeyEnvironmentVariable { get; set; }Environment variable.
Value: string
BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; set; }API origin. Requests are posted to {BaseUrl}/responses.
Value: string
Extensions
Section titled “Extensions”public IReadOnlyList<OpenResponsesExtension>? Extensions { get; set; }Codecs for Open Responses extension tools, items, and streaming events. Experimental.
Value: IReadOnlyList<OpenResponsesExtension>
GetResponseErrorMetadata
Section titled “GetResponseErrorMetadata”public Func<JsonElement, OpenResponsesErrorMetadata?>? GetResponseErrorMetadata { get; set; }Reads HTTP status and retry metadata from an endpoint-specific response error object.
Applies to both generation and streaming errors. Maps to getResponseErrorMetadata.
Value: Func<JsonElement, OpenResponsesErrorMetadata>
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; set; }Extra headers sent with every request.
Value: IReadOnlyDictionary<string, string>
public string Name { get; set; }Provider name. It is the key for provider options and provider metadata. Maps to name.
Value: string
StrictResponseInput
Section titled “StrictResponseInput”public bool StrictResponseInput { get; set; }Whether to serialize assistant history using the strict OpenAI Responses input schemas. Assistant messages
without an item ID are sent as easy input messages. Maps to strictResponseInput.
Value: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product