Skip to content

Commit

Permalink
Restore ModelNameOptions for backwards compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust committed Oct 17, 2023
1 parent 923d372 commit 1f51a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions google/generativeai/types/model_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

__all__ = [
"Model",
"ModelNameOptions",
"AnyModelNameOptions",
"BaseModelNameOptions",
"TunedModelNameOptions",
Expand Down Expand Up @@ -232,6 +233,7 @@ class Hyperparameters:
BaseModelNameOptions = Union[str, Model, glm.Model]
TunedModelNameOptions = Union[str, TunedModel, glm.TunedModel]
AnyModelNameOptions = Union[str, Model, glm.Model, TunedModel, glm.TunedModel]
ModelNameOptions = AnyModelNameOptions


def make_model_name(name: AnyModelNameOptions):
Expand Down

0 comments on commit 1f51a37

Please sign in to comment.