Skip to content

Commit

Permalink
fix: LLM - Added missing parameters to the no-op `_TunableTextEmbeddi…
Browse files Browse the repository at this point in the history
…ngModelMixin.get_tuned_model` method

PiperOrigin-RevId: 630187156
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed May 2, 2024
1 parent 78a95c5 commit eb05ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vertexai/language_models/_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,8 @@ async def get_embeddings_async(
# task_type must be 'DEFAULT' or None if _model_id is textembedding-gecko@001.
class _TunableTextEmbeddingModelMixin(_TunableModelMixin):
@classmethod
def get_tuned_model():
def get_tuned_model(cls, *args, **kwargs):
del args, kwargs # Unused.
raise NotImplementedError(
"Use deploy_tuned_model instead to get the tuned model."
)
Expand Down

0 comments on commit eb05ac4

Please sign in to comment.