How do I use generation_config with REST? On the website documentation, I only see how to do it with SDK.
My generation_config is
gemini_generation_config = {
‘temperature’: 0.5,
‘top_p’: 0.7,
‘top_k’: 20,
‘max_output_tokens’: 8192,
}
How do I use generation_config with REST? On the website documentation, I only see how to do it with SDK.
My generation_config is
gemini_generation_config = {
‘temperature’: 0.5,
‘top_p’: 0.7,
‘top_k’: 20,
‘max_output_tokens’: 8192,
}
Use the Get Code button in AI Studio. On the top left corner is a dropdown (default is Python). Switch it to cURL
and it will give you working sample code.
Hope that helps.