I am migrating a project from Gemini API to Vertex AI.
When using Gemini API I’d set the top_k in generation_config to 64.
However when I try the same generation with Vertex AI, it throws this error:
{
"error": {
"code": 400,
"message": "Unable to submit request because it has a topK value of 64 but the supported range is from 1 (inclusive) to 41 (exclusive). Update the value and try again.",
"status": "INVALID_ARGUMENT"
}
}