Module: OmniAI::Google::Vertex
- Defined in:
- lib/omniai/google/vertex.rb
Overview
Vertex AI endpoints.
Constant Summary collapse
- MULTI_REGIONS =
%w[us eu].freeze
Class Method Summary collapse
-
.host(location_id) ⇒ String
The host serving a location, derived the way Google's own SDKs do (google-genai, vertexai).
Class Method Details
.host(location_id) ⇒ String
The host serving a location, derived the way Google's own SDKs do (google-genai, vertexai).
14 15 16 17 18 19 20 21 22 |
# File 'lib/omniai/google/vertex.rb', line 14 def self.host(location_id) if location_id.eql?("global") "https://aiplatform.googleapis.com" elsif MULTI_REGIONS.include?(location_id) "https://aiplatform.#{location_id}.rep.googleapis.com" else "https://#{location_id}-aiplatform.googleapis.com" end end |