Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gemini-1.0-pro-002: Randomly returns no content object

Moved from chat-bison to gemini-1.0-pro-002 and facing some issues

gemini-1.0-pro-002:generateContent responses are randomly lacking the content property, content is not there, response comes as:

 

{
  "candidates": [
    {
      "finishReason": "OTHER"
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 5,
    "totalTokenCount": 5
  }
}

 

Is just random, same prompt, works sometimes only.

I am using system_instruction and temperature=0

7 REPLIES 7