BatchRequest
Namespace: Vercel.AI.Operations
public sealed class BatchRequestOne request in a batch.
Inheritance: object
Constructors
Section titled “Constructors”BatchRequest(string, string, string)
Section titled “BatchRequest(string, string, string)”public BatchRequest(string id, string type, string model)Creates a request.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
type |
string | |
model |
string |
Properties
Section titled “Properties”AspectRatio
Section titled “AspectRatio”public string? AspectRatio { get; set; }Image aspect ratio.
Value: string
FrequencyPenalty
Section titled “FrequencyPenalty”public double? FrequencyPenalty { get; set; }Frequency penalty.
Value: double?
public string Id { get; }Caller request id.
Value: string
ImagePrompt
Section titled “ImagePrompt”public ImagePrompt? ImagePrompt { get; set; }Image prompt.
Value: ImagePrompt
MaxOutputTokens
Section titled “MaxOutputTokens”public int? MaxOutputTokens { get; set; }Maximum output tokens.
Value: int?
public string Model { get; }Model id.
Value: string
public int? N { get; set; }Image count.
Value: int?
PresencePenalty
Section titled “PresencePenalty”public double? PresencePenalty { get; set; }Presence penalty.
Value: double?
Prompt
Section titled “Prompt”public string? Prompt { get; set; }Text prompt.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Per-request provider options.
Value: JsonElement?
Reasoning
Section titled “Reasoning”public string? Reasoning { get; set; }Reasoning effort.
Value: string
public int? Seed { get; set; }Seed.
Value: int?
public string? Size { get; set; }Image size.
Value: string
StopSequences
Section titled “StopSequences”public IReadOnlyList<string>? StopSequences { get; set; }Stop sequences.
Value: IReadOnlyList<string>
Temperature
Section titled “Temperature”public double? Temperature { get; set; }Temperature.
Value: double?
ToolChoice
Section titled “ToolChoice”public string? ToolChoice { get; set; }Tool choice such as required.
Value: string
public IReadOnlyList<BatchTool>? Tools { get; set; }Tools. They are forwarded and not executed.
Value: IReadOnlyList<BatchTool>
public int? TopK { get; set; }Top-k.
Value: int?
public double? TopP { get; set; }Top-p.
Value: double?
public string Type { get; }text, image, or an unsupported type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product