Core Release v1.7.12
- feat: support Gemini's server-side
toolCall/toolResponseparts withthoughtSignatureround-trip fidelity - server-side search rounds now surface asweb_search_callitems carrying their own call ID and queries, unmapped tool types are preserved on the native round-trip instead of being dropped, and eachthoughtSignatureappears exactly once across the reconstructed parts so Gemini accepts the replayed turn - feat: async 3D generation on Runware via
/videosplus a raw/runware_passthroughroute -taskTypeis now read from extra_params so any Runware async task can be driven through/videos(the 16:9 1080p width/height defaults now apply only tovideoInference),outputs.files[].urlis surfaced asVideoOutputURLs with the content type derived from the file extension, and the passthrough route forwards raw task arrays for capabilities with no first-class Bifrost surface such as upscaling and background removal - feat: surface Runware's provider-reported per-task
costacross image, video/3D and passthrough so pricing uses the exact figure verbatim instead of a datasheet estimate - this matters for task types like 3D that have no datasheet rate; when no cost is reported the behavior is unchanged - feat: send
s3://image and document references to Bedrock Converse as thes3Locationsource member instead of downloading the bytes and re-uploading them - Converse resolves the object itself, which skips a round trip and the 25 MiB inline cap entirely. Image format is derived from the object extension since nothing is fetched and there is noContent-Typeto read, and an extension-less object is rejected up front rather than producing an opaque 400 - feat: resolve Vertex URL sources per model family rather than inlining everything - a
gs://URI is now forwarded to Gemini/Gemma asfileData.fileUri(the documented form, resolved under the caller's own project IAM, and the only thing that keeps multi-hundred-MB video inputs viable) and read from Cloud Storage with the request key's own Google credentials for Claude-on-Vertex, which accepts base64 sources only.http(s)is still always fetched: forwarding one was measured against the harness and Vertex rejected every endpoint shape withURL_REJECTED-REJECTED_FC_TOO_MANY_PENDING - fix: allow Vertex AI to send function declarations and a Google Search tool in the same request without
includeServerSideToolInvocations- Vertex accepts the combination natively, so Google Search was being dropped for no reason, and search localization viaRetrievalConfig.LatLngis now preserved when both tool types are present - fix: prefer function declarations over Google Search when tool combination is disabled on Gemini - Google's tool combination is Preview and Gemini 3 only (https://ai.google.dev/gemini-api/docs/generate-content/tool-combination), so on every other model one of the two tool types has to be dropped. Function declarations now win: they carry the caller's own tools, or the ones Bifrost's MCP gateway synthesized from their connected servers, and dropping those leaves the model unable to invoke them at all while it answers as though the capabilities never existed. Dropping Google Search only costs grounding, so the model still answers, just without citations. One is disabled, the other is degraded. Set
include_server_side_tool_invocationsto send both. A lone Google Search tool still converts back correctly, andretrievalConfigis only emitted when a search tool actually survived conversion
Breaking on the Gemini API surface: a request carrying both function declarations and Google Search withoutinclude_server_side_tool_invocationspreviously kept Google Search and dropped the function declarations. It now does the opposite. Setinclude_server_side_tool_invocationstotrueto send both, which is supported on Gemini 3 models. Vertex is unaffected, since it accepts the combination natively and drops neither.
- fix: always emit a Gemini candidate carrying its finish reason on
generateContent, even when nothing visible was generated - a thinking model that spends its whole output budget before emitting a token is a successful 200 with an empty answer, butCandidatesisomitempty, so dropping that candidate produced a body with nocandidateskey at all and left a loneusageMetadataobject that every Gemini-shaped client dereferences blind - fix: drop payload-free Gemini parts when assembling a candidate - every
Partfield isomitempty, so such a part marshals to exactly{}; the harness observed one on the wire when a transcription request for an unintelligible tone came back asparts:[{}], where it is noise a client will try to read and it masks the contentless case by making the parts slice look non-empty - fix: accept a bare model identifier on Bedrock rerank by synthesizing the foundation-model ARN from the resolved region - Rerank is the one Bedrock surface that names its model by ARN rather than by bare ID, so all three rerank drop-ins in the provider harness 400'd on
amazon.rerank-v1:0. The partition is derived from the region (aws,aws-cn,aws-us-gov) so GovCloud and China build a correct ARN, and an explicit ARN still passes through untouched - fix: stop stripping
file_urlfrom OpenAI-shaped chat file blocks on marshal - dropping it produced{"type":"file","file":{}}and an upstream complaint about a missingfile_id, which hid the fact that a source had been discarded. Providers that cannot take a URL now say so by name, and any OpenAI-compatible endpoint that does accept one keeps working without a Bifrost change - fix: leave URL content sources Bifrost cannot download in place on the OpenAI and native-Anthropic paths instead of failing the request - only
http(s)is fetched, and whether ags://,s3://or scheme-less reference is usable is the provider's call, so the source now travels as{"type":"url"}and the platform answers for itself
Installation
go get github.com/maximhq/bifrost/core@v1.7.12This release was automatically created from version file: core/version