Google Gemini API bricht am 8. Juni die Kompatibilität, Legacy-SDKs werden Fehler auslösen

Laut Google wird die Gemini Interactions API ein breaking update erhalten. Die neue Version wird ab dem 26. Mai zum Standard, während die Legacy-Version am 8. Juni vollständig abgekündigt wird. Anfragen, die Python- oder JavaScript-SDK-Versionen 1.x.x verwenden, geben nach diesem Datum Fehler zurück.

Entwickler müssen zwei Codepfade anpassen: Die Antwortstruktur wechselt von einem outputs-Array zu einem granulareren steps-Array für das Parsen von Text und Ergebnissen von Funktionsaufrufen; und die Ausgabe-Konfiguration fasst MIME-Typen sowie Bildparameter in einen einheitlichen response_format-Parameter zusammen, der nun Multi-Modal-Outputs unterstützt – Text und Audio gleichzeitig in einer einzigen Anfrage. SDK-Nutzer können auf Version 2.0.0 oder höher upgraden, um eine automatische Migration zu erhalten.

Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.
Kommentieren
0/400
Keine Kommentare