Skip to content

BatchRequest

Namespace: Vercel.AI.Operations

public sealed class BatchRequest

One request in a batch.

Inheritance: object

View source

public BatchRequest(string id, string type, string model)

Creates a request.

Parameters

Name Type Description
id string
type string
model string

View source

public string? AspectRatio { get; set; }

Image aspect ratio.

Value: string

View source

public double? FrequencyPenalty { get; set; }

Frequency penalty.

Value: double?

View source

public string Id { get; }

Caller request id.

Value: string

View source

public ImagePrompt? ImagePrompt { get; set; }

Image prompt.

Value: ImagePrompt

View source

public int? MaxOutputTokens { get; set; }

Maximum output tokens.

Value: int?

View source

public string Model { get; }

Model id.

Value: string

View source

public int? N { get; set; }

Image count.

Value: int?

View source

public double? PresencePenalty { get; set; }

Presence penalty.

Value: double?

View source

public string? Prompt { get; set; }

Text prompt.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Per-request provider options.

Value: JsonElement?

View source

public string? Reasoning { get; set; }

Reasoning effort.

Value: string

View source

public int? Seed { get; set; }

Seed.

Value: int?

View source

public string? Size { get; set; }

Image size.

Value: string

View source

public IReadOnlyList<string>? StopSequences { get; set; }

Stop sequences.

Value: IReadOnlyList<string>

View source

public double? Temperature { get; set; }

Temperature.

Value: double?

View source

public string? ToolChoice { get; set; }

Tool choice such as required.

Value: string

View source

public IReadOnlyList<BatchTool>? Tools { get; set; }

Tools. They are forwarded and not executed.

Value: IReadOnlyList<BatchTool>

View source

public int? TopK { get; set; }

Top-k.

Value: int?

View source

public double? TopP { get; set; }

Top-p.

Value: double?

View source

public string Type { get; }

text, image, or an unsupported type.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product