omniai-google 3.22.0 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc1ade66e25bb33aca449a360b70e9e0df885996022ce6ed6bc8350137cf69c
4
- data.tar.gz: f54782298b7bd730164e437564ac3184b23eeebb5df7779c429d9cc978d68983
3
+ metadata.gz: 5b5542c78680371ff3d0e4268303377d97e71867bb1116811852ee7ef7e6c397
4
+ data.tar.gz: ea3ee571ac27dca8d87c75b314961e2ac23b5ef0bc860c3aab84c0f1d4680e87
5
5
  SHA512:
6
- metadata.gz: 0d7b57da0258da82684ac694c35d056b77b60ac2edbf6b3146c674f84b2906d42457915672276a5c19a8ea24ec6aa7108359e224ce33660e2c5eb6bbb110b692
7
- data.tar.gz: b577e9ce548f3cae58d0fbffea9a933c648855f48a5455c277f04d77fd842b839de095e767da1f235f648994fe265fc7814d9b7acfb1412d91d91c4b5667349d
6
+ metadata.gz: 777e0f53cd5943ef85795e2a141164bc3206db3ba9a340d0001bdc95a296b2ffa88ef5f786ee7c1f15c3500dab679f8878253956ad38879518aa82a9226fa54a
7
+ data.tar.gz: 341ab1bf0279b58e7ff94d62a36243598f86b3a5766cb3490913d7e1e6beb9509defe80f28540c9b2371a04d630a56324532b7d16e3dcb1ee6be3efe294b4d04
@@ -15,7 +15,10 @@ module OmniAI
15
15
  TEXT_EMBEDDING_005 = "text-embedding-005"
16
16
  TEXT_MULTILINGUAL_EMBEDDING_002 = "text-multilingual-embedding-002"
17
17
  GEMINI_EMBEDDING_001 = "gemini-embedding-001"
18
+ # Preview of GEMINI_EMBEDDING_2.
18
19
  GEMINI_EMBEDDING_2_PREVIEW = "gemini-embedding-2-preview"
20
+ # Vertex serves it at global, us and eu only.
21
+ GEMINI_EMBEDDING_2 = "gemini-embedding-2"
19
22
  EMBEDDING = TEXT_EMBEDDING_004
20
23
  MULTILINGUAL_EMBEDDING = TEXT_MULTILINGUAL_EMBEDDING_002
21
24
  end
@@ -80,7 +83,7 @@ module OmniAI
80
83
  protected
81
84
 
82
85
  # Determines which endpoint to use based on client and model configuration.
83
- # Routes gemini-embedding-2-* models to embedContent on Vertex, as Google's
86
+ # Routes gemini-embedding-2* models to embedContent on Vertex, as Google's
84
87
  # Vertex AI requires this endpoint for newer multimodal embedding models.
85
88
  #
86
89
  # @return [Symbol] :embed_content, :predict, or :batch_embed_contents
@@ -113,7 +116,7 @@ module OmniAI
113
116
  end
114
117
  end
115
118
 
116
- # Builds payload for the Vertex embedContent endpoint (gemini-embedding-2-* models).
119
+ # Builds payload for the Vertex embedContent endpoint (gemini-embedding-2* models).
117
120
  # @return [Hash]
118
121
  def embed_content_payload
119
122
  raise ArgumentError, "embedContent does not support batch input" if @input.is_a?(Array) && @input.length > 1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Google
5
- VERSION = "3.22.0"
5
+ VERSION = "3.23.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.0
4
+ version: 3.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre