As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

Changelog

0.6.12 (2024-10-31)

Bug Fixes

  • disable universe-domain validation (85c7512)

0.6.11 (2024-10-24)

Features

0.6.10 (2024-09-23)

Features

  • Add GenerationConfig.{presence_penalty, frequency_penalty, logprobs, response_logprobs, logprobs} and Candidate.{avg_logprobs, logprobs_result} (d6238e4)

  • Add GoogleSearchRetrieval tool and candidate.grounding_metadata (d6238e4)

  • Add HarmBlockThreshold.OFF (d6238e4)

  • Add HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY (d6238e4)

  • Add PredictionService (for Imagen) (d6238e4)

  • Add Schema.min_items (d6238e4)

  • Add TunedModels.reader_project_numbers (d6238e4)

Documentation

  • Small fixes (d6238e4)

  • Tag HarmCategories by the model family they’re used on. (d6238e4)

0.6.9 (2024-08-19)

Features

  • Add model max_temperature (fdebbf2)

  • Add new PromptFeedback and FinishReason entries (fdebbf2)

  • Add new PromptFeedback and FinishReason entries for https://github.com/google-gemini/generative-ai-python/issues/476 (fdebbf2)

Documentation

0.6.8 (2024-07-30)

Bug Fixes

  • Retry and timeout values do not propagate in requests during pagination (c6eeae0)

0.6.7 (2024-07-08)

Bug Fixes

0.6.6 (2024-06-26)

Features

  • [google-ai-generativelanguage] Add code execution (#12843) (e4fcb00)

0.6.5 (2024-06-11)

Features

  • Add cached_content_token_count to CountTokensResponse (09c7fae)

  • Add cached_content_token_count to generative_service’s UsageMetadata (09c7fae)

  • Add content caching (09c7fae)

Documentation

0.6.4 (2024-05-16)

Features

  • v1: Add generate_content_request to CountTokensRequest (e5dd7ed)

  • v1: Add usage metadata to GenerateContentResponse (e5dd7ed)

  • v1beta: Add video metadata to files API (e5dd7ed)

  • v1beta: Update timeouts for generate content (e5dd7ed)

  • v1: Update timeouts (e5dd7ed)

Documentation

0.6.3 (2024-05-07)

Features

  • [google-ai-generativelanguage] Add FileState to File (#12660) (88848eb)

0.6.2 (2024-04-15)

Features

  • v1: Add output dimensionality to EmbedContentRequest message (e3bfbc6)

  • v1: Add QUESTION_ANSWERING and FACT_VERIFICATION to TaskType Enum (e3bfbc6)

  • v1: Add rest binding for tuned models (e3bfbc6)

  • v1beta: Add output dimensionality to EmbedContentRequest message (e2cf0c4)

  • v1beta: Add QUESTION_ANSWERING and FACT_VERIFICATION to TaskType Enum (e2cf0c4)

  • v1beta: Add response_mime_type to GenerationConfig message (e2cf0c4)

Documentation

  • v1beta: A bunch of small fixes (e2cf0c4)

  • v1: Lots of small fixes (e3bfbc6)

0.6.1 (2024-04-03)

Features

Documentation

  • A comment for field candidate_count in message .[google.ai](https://www.google.com/url?sa=D&q=http%3A%2F%2Fgoogle.ai).generativelanguage.v1beta.GenerationConfig is changed (c0a0bf6)

0.6.0 (2024-03-22)

⚠ BREAKING CHANGES

  • make learning rate a one-of

Features

  • Add learning_rate_multiplier to tuning Hyperparameters (35017ea)

Bug Fixes

  • make learning rate a one-of (35017ea)

Documentation

0.5.4 (2024-03-05)

Bug Fixes

0.5.3 (2024-02-22)

Bug Fixes

  • [Many APIs] fix ValueError in test__validate_universe_domain (#12280) (2d75d0e)

  • deps: [Many APIs] Require google-api-core>=1.34.1 (#12303) (fbb80c3)

0.5.2 (2024-02-06)

Bug Fixes

  • Add google-auth as a direct dependency (780c5f1)

  • Add staticmethod decorator to _get_client_cert_source and _get_api_endpoint (780c5f1)

  • Resolve AttributeError ‘Credentials’ object has no attribute ‘universe_domain’ (780c5f1)

0.5.1 (2024-02-01)

Features

  • Allow users to explicitly configure universe domain (a0392ee)

0.5.0 (2024-01-24)

⚠ BREAKING CHANGES

  • Fix content.proto’s Schema - type should be required

Features

  • Update GenAI libraries to include input_safety_feedback (d2004d4)

Bug Fixes

  • Fix content.proto’s Schema - type should be required (d2004d4)

Documentation

  • Minor docs updates (d2004d4)

  • Update summary, improve description for title in EmbedContentRequest (d2004d4)

0.4.1 (2024-01-22)

Documentation

  • [google-ai-generativelanguage] Fixed minor documentation typos for field function_declarations in message google.ai.generativelanguage.v1beta.Tool (#12206) (52957f3)

0.4.0 (2023-12-09)

Features

  • Add v1, contains only GenerativeService, nothing else (23d8814)

  • Add v1beta, adds GenerativeService and RetrievalService (23d8814)

  • Set google.ai.generativelanguage_v1beta as the default import (23d8814)

0.3.5 (2023-12-07)

Features

  • Add support for python 3.12 (ea6cfc2)

  • Introduce compatibility with native namespace packages (ea6cfc2)

Bug Fixes

  • Require proto-plus >= 1.22.3 (ea6cfc2)

  • Use retry_async instead of retry in async client (ea6cfc2)

0.3.4 (2023-09-30)

Documentation

0.3.3 (2023-09-21)

Bug Fixes

  • set google.ai.generativelanguage_v1beta3 as the default import (#11677) (39ea699)

0.3.2 (2023-09-20)

Features

  • Add BatchEmbedText and CountTextTokens to the text service (38f2ca3)

  • Add google/ai/generativelanguage_v1beta3 (38f2ca3)

  • Add model tuning (38f2ca3)

  • Add permissions service (38f2ca3)

0.3.1 (2023-07-05)

Bug Fixes

0.3.0 (2023-06-29)

Bug Fixes

  • remove BLOCK_NONE from HarmBlockThreshold (9d46f7f)

0.2.1 (2023-06-03)

Documentation

  • fix broken client library documentation links (#11192) (5e17f7a)

0.2.0 (2023-05-05)

Features

0.1.0 (2023-05-02)

Features

  • add initial files for google.ai.generativelanguage.v1beta2 (#11142) (54363fd)

Changelog