Getting random citation source in API response

Hi,

I’ve encountered a potential issue with the Gemini 1.5 Pro 002 API that I’d like to verify. While the content portion of the API response is correct, I’m receiving unexpected citation metadata in the response.

Specifically, the API is returning a “citationMetadata” parameter with a URL that appears to be unrelated to my input file. This URL is consistently appearing in the response, regardless of the input provided.

I’m testing the API through Postman and want to confirm if this is:

  1. A known bug
  2. Expected behavior
  3. Something incorrect in my implementation

Could anyone with knowledge advise on this behavior?

For reference, here is a snippet of the response


],
“role”: “model”
},
“finishReason”: “STOP”,
“citationMetadata”: {
“citationSources”: [
{
“startIndex”: 17914,
“endIndex”: 18037,
“uri”: “Voller v. Nationwide News Pty Ltd, Fairfax Media Publications Pty Ltd, and Australian News Channel Pty Ltd • Page 31 • CYRILLA: Global Digital Rights Law
}
]
},
“avgLogprobs”: -0.002429062787566133
}
],
“usageMetadata”: {
“promptTokenCount”: 28851,
“candidatesTokenCount”: 5251,
“totalTokenCount”: 34102
},
“modelVersion”: “gemini-1.5-pro-002”
}

Hi @jtsoft, It might be a temporary error. I tested it and I am not getting any issue from my end.

Citation metadata will be included in the response only when a portion of the generated sentence or phrase directly matches specific referenced sources.