Repository navigation
chore: release v0.15.0 - #277
Merged
Merged
Conversation
genkit-bot
reviewed
Dec 3, 2026
genkit-bot
left a comment
There was a problem hiding this comment.
LGTM
Details
Run b33cbf4a-3464-41ea-bd8b-d738a2147ddf · Cloud Run logs · Dashboard
# Conflicts: # packages/genkit-evaluators/pyproject.toml # packages/genkit/pyproject.toml # uv.lock
pavelgj
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google Cloud backends now live directly inside
genkit-anthropicandgenkit-openai, andgenkit-vertexaiis deprecated for removal next release. Evaluators, deprecated in 0.14, are removed. This release also addsOpenAICompatiblefor third-party and local servers, nativeMistralsupport, and pre-1.0 response and error fixes acrossgenkit-google-genaiandgenkit-a2ui. Anthropic and OpenAI model catalogs are refreshed, and declared dependency floors now match the lowest versions tested in CI.Connect third-party and local servers with
OpenAICompatibleandMistralgenkit-openaiaddsOpenAICompatiblefor connecting OpenRouter, Together, Groq, vLLM, LiteLLM, or local servers under their own namespace (#258). Each instance registers chat models and embedders under<name>/<id>, forwards model IDs verbatim without stripping provider prefixes, and discovers models dynamically from/models, letting you run multiple servers alongsideOpenAI().api_keyaccepts a string, an async callable for rotating tokens, orNonefor keyless local servers, and never reads ambientOPENAI_API_KEY.Mistral()(equivalent toOpenAI(provider='mistral')) registers Mistral's model catalog undermistral/and readsMISTRAL_API_KEY(#123). It translates Genkit options to Mistral's wire fields (random_seed,max_tokens,output_dimension) and round-tripsthinkingchunks as reasoning parts.Run Claude and Model Garden open models on Google Cloud
Previously, running Claude or Model Garden open models on Google Cloud meant installing
genkit-vertexaiand usingModelGarden. That put Claude under a separatemodelgarden/anthropic/...namespace, limited callers to string refs, and coupled.promptfiles to Vertex (#257, #259, #260).Anthropic(backend=GoogleCloud(...))routes throughAsyncAnthropicVertex(default location:'global') while keeping theanthropic/namespace, typedAnthropic.claude(...)refs, andAnthropicConfigidentical to the direct API.OpenAICompatible(backend=GoogleCloud(...))targets the Vertex OpenAI endpoint (default location:'us-central1'), refreshes Application Default Credentials (ADC) in a worker thread, and defaults toname='modelgarden'so existingmodelgarden/<publisher>/<model>refs keep working. Both backends require the[google-cloud]extra and fail fast withFAILED_PRECONDITION—printing thegcloud auth application-default logincommand—when credentials or a project are missing.Return Gemini candidate metadata and coalesce streamed parts
genkit-google-genaihad three pre-1.0 rough edges in Gemini and Vertex calls (#50). Replies droppedgroundingMetadata,citationMetadata,logprobsResult, andsafetyRatingsfromresponse.custom; streamed turns leftresponse.message.contentfragmented into onePartper chunk; and missing Vertex projects raised a bareValueErrorthatRetrymiddleware kept retrying.One-shot and streamed Gemini calls now populate
response.custom['candidates'][i], coalesce adjacent streamed text and reasoning fragments into wholeParts at stream end, and round-tripthoughtSignatureacross all part kinds. Missing Vertex projects raiseGenkitError(status='FAILED_PRECONDITION')across Gemini, Veo, and Virtual Try-On soRetrystops immediately. Billed tokens from built-in tools (google_search,code_execution,url_context) now appear inusage.custom['toolUseTokens'](#168).Smaller things worth knowing
claude-opus-5-5,claude-sonnet-5-5,claude-haiku-5-5,claude-opus-5,claude-fable-5-1, andclaude-fable-5-2with native structured output; removes retiredclaude-opus-4,claude-opus-4-1,claude-sonnet-4, andclaude-sonnet-4-5from the static catalog.gpt-5.4–gpt-5.6, the GPT-6 family,chat-latest,gpt-5-search-api,gpt-image-2.5/2.6(withquality='auto' | 'xhigh' | 'max'), andgpt-transcribe. Drops retired chat and image IDs from startup registration (they still resolve by name), filters realtime/moderation/Sora/Responses-only IDs during discovery, and classifies fine-tunes by base model.tool_choice='required'(fix(py/openai,anthropic): relax tool_choice='required' to 'auto' after a tool turn #160):genkit-openaiandgenkit-anthropicrelaxtool_choice='required'to'auto'after a tool response in the same turn, preventing loops that ran untilmax_turns.cache_controlon system prompt parts is preserved as structured text blocks instead of being flattened to a string. Empty signed thinking blocks now round-trip in Anthropic and Amazon Bedrock histories instead of being dropped after tool calls.genkit-openaisplits embed batches over 2,048 inputs into sequential requests and separates streamed tool calls by ID when compatible servers omitindex.video_bytesfromOperation.rawso Vertex Veo responses withoutoutput_gcs_uriserialize cleanly to JSON and the Dev UI; the media part still carries the base64 data URL.tool_calls, tool replies includetool_nameso tool loops finish, andLiteral[...]enum constraints are preserved in tool schemas.ai.embed_many()stops unsent documents instead of continuing to callInvokeModelin the background.notifications/cancelledto stop server work. Servers that fail before completing a request back off exponentially (1s up to 30s) and fail fast withUNAVAILABLEduring the wait (restart()andhost.reconnect()skip the wait). Client-level errors now name the owningMcpHost.Skills()checks.agents/skillsbeforeskills, honors explicitskill_paths=[]to disable discovery, and refreshes only its ownuse_skillcatalog entries.Before you upgrade
genkit-evaluators, thegenkit[evaluators]extra,genkit.evaluator,ai.define_evaluator,ai.define_batch_evaluator,ai.evaluate, and the Vertex AI evaluators ingenkit-google-genaiare gone, as announced in 0.14 (revert: restore evaluators for 0.14 #131).genkit-evaluators0.14 requiresgenkit<0.15, so it keeps a plainpip installoruv lockon 0.14 until you uninstall it.genkit-evaluatorsis already installed in your environment, an in-placepip install -U genkitreports a dependency conflict. Any remaining import ofgenkit.evaluatoron 0.15 raisesModuleNotFoundErrorwith migration instructions.genkit-google-genaibelow 0.14, raise the pin to at least 0.14. Older versions importgenkit.evaluatorunconditionally and fail on startup.genkit-vertexaiis deprecated (feat(py): deprecate genkit-vertexai; remove it in the next release #260): Still works in0.15with aFutureWarningonModelGarden(...), but is capped atgenkit<0.16and will be removed next release. Move Claude togenkit-anthropic[google-cloud]withAnthropic(backend=GoogleCloud()), and move Model Garden open models togenkit-openai[google-cloud]withOpenAICompatible(backend=GoogleCloud()).genkit-google-genairesponse and error shapes (fix(py/google-genai)!: keep candidate metadata, coalesce streamed parts, and fail fast without a Vertex project #50):response.message.contentcoalesces adjacent text/reasoning fragments into wholeParts rather than onePartper chunk.fileDatareply parts arrive as media parts instead of empty text parts in both chunks and final messages.custom.executableCode.languageandcustom.codeExecutionResult.outcomeare now wire strings ('PYTHON','OUTCOME_OK') instead ofgoogle-genaienum members.VertexAI(...)(such aslocation='eu') without a project no longer raisesValueErrorat construction; the first call raisesGenkitError(status='FAILED_PRECONDITION'). Per-request Veo and Virtual Try-On clients without a Vertex project also raiseFAILED_PRECONDITIONinstead ofINVALID_ARGUMENT.genkit-a2uiwire key changed tomessages(refactor(a2ui)!: carry A2UI messages under the spec'smessageskey #150):a2ui_partnow writes{"messages": [...]}instead of{"envelopes": [...]}to match the A2UI spec.envelopes_from_parts(...)reads both keys (no change required if you use it), but code readingpart.data['envelopes']directly must switch toenvelopes_from_parts(...)orpart.data['messages'].genkit-openai(feat(py/openai): send Mistral's field names when base_url points at Mistral #123): PointingOpenAI(base_url=...)at a Mistral host now registers models undermistral/<id>instead ofopenai/<id>, drops OpenAI's catalog, and readsMISTRAL_API_KEYinstead ofOPENAI_API_KEY. Move any Mistral key stored inOPENAI_API_KEYtoMISTRAL_API_KEYor passapi_key=.openai>=1.106.0,anthropic>=0.98.0,google-genai>=2.17.0,ollama>=0.6.0,anyio>=4.12.0(genkit-mcp), andopentelemetry-api/sdk>=1.39.0+opentelemetry-exporter-gcp-logging>=1.12.0a0(genkit-google-cloud).