googleapis / googleapis/python-genai

Why Batch Request does not stick to json format provided?

Aperta
#1,608 13 commenti 0 reazioni 1 assegnatario Rivendicata da @Venkaiahbabuneelam Vedi su GitHub
priority: p3 type: question
Lingua principale
Python
Stelle
4k
Fork
1k
Merge medio
2g 12h
PR unite (30g)
41

Descrizione

I am trying to get the Gemini batch process output in a structured json I specified in the system instructions. I tried thrice: twice with 500 requests per batch and once with 186 using gemini 2.5 pro But every time the output does not follow the json structure. Although the json structure is a bit complex but 2.5 pro was able to give the output I want when I used it in real time.
Am I doing it wrong? Is there a better way to specify the json in batch processing?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.