Skip to content

v1.1.0

Compare
Choose a tag to compare
@release-please release-please released this 10 Feb 21:48
da2ed71

1.1.0 (2025-02-10)

Features

  • Add support for typing.Literal in response_schema (fixes #264) (384c4eb)
  • Allow converting a function into FunctionDeclaration with api option (408e28f)
  • Support generate content config for each chat turn (ca19100)
  • Tuning - Tuning.tune for Gemini API no longer blocks until the tuning operation is resolved (fcf8888)

Bug Fixes

  • Remove duplicate function invocations and ensure automatic function calling can be disabled in generate_content_stream (0958fbe)
  • Response_schema generation for pydantic fields with type Optional[list] and Optional[MyBaseModel] now work correctly (fixes #246) (8330561)
  • Support dict response_schema with 'any_of' key (75f5056)
  • Common - Do not fail when server returns unknown enum values on Python <3.11 (843d86d)

Documentation

  • Add docs on how to structure contents (fixes #274) (da356cb)
  • Regenerate docs for 1.0 (fbee816)
  • Update model names in README, fix function calling example (11c0274)