v0.4.0 - Function calling, Semantic retriever, AQA, and more
What's new
Features
- Update notebook magics to work with Gemini by @markmcd in #109
- Semantic retriever by @shilpakancharla in #168
- Attributed question answering (
genai.generate_answer
) by @shilpakancharla in #169 - Automatic function calling. by @MarkDaoust in #201
model = genai.GenerativeModel(..., tools=[my_function]) chat = model.start_chat(enable_automatic_function_calling=True)
- Request options (timeouts, retry, ...) by @aidoskanapyanov in #204
Model.generate_content(..., request_options={'timeout': 100, 'retry': google.api_core.retry.Retry()})
- Permissions module by @mayureshagashe2105 in #205
More updates
- Lock google-auth version to fix #114 by @yihong0618 in #115
- Update code in
README.md
andgenerate_content
documentation by @Hamza-nabil in #149 - Make error message more readable by @ftnext in #163
- Python 3.12 support. by @MarkDaoust in #165
- Rename model defaults to use gemini-pro by @markmcd in #175
- Add a more explicit error when no
parts
are returned by @markmcd in #180 - Add
embed_content_async
implementation by @mayureshagashe2105 in #189 - Link embed_content reference page to model details page by @kaycebasques in #194
- Implement
__repr__
forGenerateContentResponse
andChatSession
by @aidoskanapyanov in #202 - Fixed #166. Thanks @piresramon. by @MarkDaoust in #208
New Contributors
- @yihong0618 made their first contribution in #115
- @ftnext made their first contribution in #163
- @mayureshagashe2105 made their first contribution in #189
- @kaycebasques made their first contribution in #194
- @aidoskanapyanov made their first contribution in #202
Full Changelog: v0.3.2...v0.4.0