Skip to content

Commit

Permalink
fix: Make statistics Optional for TextEmbedding.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 558933105
  • Loading branch information
sasha-gitg authored and copybara-github committed Aug 21, 2023
1 parent ff5cfa1 commit 7eaa1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vertexai/language_models/_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,8 @@ class TextEmbedding:
"""Text embedding vector and statistics."""

values: List[float]
statistics: TextEmbeddingStatistics
_prediction_response: aiplatform.models.Prediction = None
statistics: Optional[TextEmbeddingStatistics] = None
_prediction_response: Optional[aiplatform.models.Prediction] = None


@dataclasses.dataclass
Expand Down

0 comments on commit 7eaa1d4

Please sign in to comment.