Agent BYOK - Long processing and frequent errors

I recently added one of our own keys for using Gemini - the “Test Button” yielded a success message after adding it, however i noticed that the processing and thinking steps take a very long time compared to the integrated models - and in many cases it doesn’t closely match the quality of output (in my case comparing Sonnet 4.6 to Gemini 3.1 BYOK).

I sent out the same exact request and got vastly better results with the integrated model, even when moving to smaller models.

Apart from that, using the BYOK model, i get a very high frequency of errors, such as:

  • Streaming error: Streaming request failed: ClientException: Connection closed before full header was receive (+ long uri string)

  • Maximum iterations reached. There might be an issue with tool processing.

  • ClientException: Connection closed while receiving data,

  • HTTP 500: Internal Server Error (Status: 500)


My question:
Are the integrated models generally more powerful or more “connected” to Rive than the BYOK ones, or is this purely a model difference per se? Or are these all bugs?