Skip to content
Discussion options

You must be logged in to vote

You would need to initialize a request and pass the generation config into the requests. You can also pass generation config into GenerativeModel Constructor as well.

var request = new GenerateContentRequest();
request.GenerationConfig  = new GenerationConfig(){
Temperature = 0.3,
MaxOutputTokens = 1000
};

var response = await model.GenerateContentAsync(request);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gunpal5
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants