Skip to content

Commit

Permalink
Restore ModelNameOptions for backwards compatibility. (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust authored Oct 18, 2023
1 parent 2eb5e82 commit 2e9f23e
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 2e9f23e

Please sign in to comment.