Skip to content

Commit

Permalink
Merge branch 'google-gemini:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
meslubi2021 authored Jan 22, 2025
2 parents 3b6ddb8 + 362e001 commit 7b8906e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion google/generativeai/types/model_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,10 @@ def make_model_name(name: AnyModelNameOptions):
if isinstance(name, (Model, protos.Model, TunedModel, protos.TunedModel)):
name = name.name # pytype: disable=attribute-error
elif isinstance(name, str):
name = name
if "/" not in name:
name = "models/" + name
else:
name = name
else:
raise TypeError(
"Invalid input type. Expected one of the following types: `str`, `Model`, or `TunedModel`."
Expand Down
2 changes: 1 addition & 1 deletion google/generativeai/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# limitations under the License.
from __future__ import annotations

__version__ = "0.8.3"
__version__ = "0.8.4"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_version():
release_status = "Development Status :: 5 - Production/Stable"

dependencies = [
"google-ai-generativelanguage==0.6.13",
"google-ai-generativelanguage==0.6.15",
"google-api-core",
"google-api-python-client",
"google-auth>=2.15.0", # 2.15 adds API key auth support
Expand Down

0 comments on commit 7b8906e

Please sign in to comment.