github firebase/genkit py/v0.5.1
Genkit Python SDK v0.5.1

10 days ago

Genkit Python SDK v0.5.1

Next release of Genkit Python is here! We added new advanced features to two key model plugins, fixed sync/async bridge issues with several plugins, and overall improved plugin reliability based on testing feedback.

Highlights

  • Anthropic — cache control and PDF document support
  • DeepSeek — reasoning content extraction for R1 models

Async fixes

Several plugins were still using synchronous clients internally, causing event loop issues. This release migrates them all to proper async:

  • DeepSeek: sync OpenAIAsyncOpenAI
  • Compat-OAI: sync → AsyncOpenAI
  • Vertex AI: async client creation with threaded credential refresh
  • Dev Local Vectorstore: pathlibaiofiles
  • Amazon Bedrock boto3aiboto3

Other notable fixes

  • Fixed dotprompt deadlock
  • Fixed streaming tool requests in Anthropic plugin
  • Structured output support for xAI/Grok
  • Nullable JSON Schema handling in Gemini plugin
  • Data URI redaction in debug logs
  • Graceful SIGTERM shutdown in dev runner
  • Firebase telemetry refactor with lazy-loaded Google Cloud exporters

Contributors

Yesudeep Mangalapilly, Elisa Shen, Jeff Huang, Niraj Nepal, Prashant Kumar

Don't miss a new genkit release

NewReleases is sending notifications on new releases.