Module: Legion::Extensions::Llm::Vertex
- Extended by:
- Core, AutoRegistration, Logging::Helper
- Defined in:
- lib/legion/extensions/llm/vertex.rb,
lib/legion/extensions/llm/vertex/version.rb,
lib/legion/extensions/llm/vertex/provider.rb,
lib/legion/extensions/llm/vertex/actors/fleet_worker.rb,
lib/legion/extensions/llm/vertex/runners/fleet_worker.rb
Overview
Google Cloud Vertex AI provider extension namespace.
Defined Under Namespace
Modules: Actor, Runners Classes: Provider
Constant Summary collapse
- PROVIDER_FAMILY =
:vertex- VERSION =
'0.2.6'
Class Method Summary collapse
Class Method Details
.default_settings ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/legion/extensions/llm/vertex.rb', line 18 def self.default_settings ::Legion::Extensions::Llm.provider_settings( family: PROVIDER_FAMILY, instance: { endpoint: nil, tier: :frontier, transport: :http, credentials: { access_token: nil, credentials: nil }, provider: { project: nil, location: Provider::DEFAULT_LOCATION, model_aliases: {} }, usage: { inference: true, embedding: true, image: false }, limits: { concurrency: 4 }, fleet: { enabled: false, respond_to_requests: false, capabilities: %i[chat stream_chat embed], lanes: [], concurrency: 4, queue_suffix: nil } } ) end |
.discover_instances ⇒ Object
52 53 54 55 56 57 |
# File 'lib/legion/extensions/llm/vertex.rb', line 52 def self.discover_instances instances = {} discover_default_instance(instances) discover_named_instances(instances) instances end |
.provider_class ⇒ Object
48 49 50 |
# File 'lib/legion/extensions/llm/vertex.rb', line 48 def self.provider_class Provider end |