Table of Contents

Class GenerateContentRequestForCountToken

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Request to generate a completion from the model.

public class GenerateContentRequestForCountToken : GenerateContentRequest, IContentsRequest
Inheritance
GenerateContentRequestForCountToken
Implements
Inherited Members
Extension Methods

Constructors

GenerateContentRequestForCountToken(string, GenerateContentRequest)

Initializes a new instance of GenerateContentRequestForCountToken with the provided model and base request.

public GenerateContentRequestForCountToken(string modelName, GenerateContentRequest baseRequest)

Parameters

modelName string

The name of the model to use.

baseRequest GenerateContentRequest

The base GenerateContentRequest.

Exceptions

ArgumentException

Thrown when the modelName is null or empty.

Properties

Model

Required. The name of the Model to use for generating the completion. Format: models/{model}.

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

string

See Also