Skip to content

Commit

Permalink
Restore ModelNameOptions for backwards compatibility. (google-gemini#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored and markmcd committed Oct 30, 2023
1 parent f6e425a commit 6cb0d53
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 @@ -30,6 +30,7 @@

__all__ = [
"Model",
"ModelNameOptions",
"AnyModelNameOptions",
"BaseModelNameOptions",
"TunedModelNameOptions",
Expand Down Expand Up @@ -310,6 +311,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 6cb0d53

Please sign in to comment.