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
modelNamestringThe name of the model to use.
baseRequestGenerateContentRequestThe base GenerateContentRequest.
Exceptions
- ArgumentException
Thrown when the
modelNameis 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; }