Module: Legion::Extensions::Llm::AzureFoundry
- Extended by:
- Core, AutoRegistration, Logging::Helper
- Defined in:
- lib/legion/extensions/llm/azure_foundry.rb,
lib/legion/extensions/llm/azure_foundry/version.rb,
lib/legion/extensions/llm/azure_foundry/provider.rb
Overview
Azure AI Foundry provider extension namespace.
Defined Under Namespace
Classes: Provider
Constant Summary collapse
- PROVIDER_FAMILY =
:azure_foundry- VERSION =
'0.2.0'
Class Method Summary collapse
- .default_settings ⇒ Object
- .discover_instances ⇒ Object
- .provider_class ⇒ Object
- .registry_publisher ⇒ Object
Class Method Details
.default_settings ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 18 def self.default_settings { enabled: false, default_model: nil, endpoint: nil, api_key: nil, bearer_token: nil, api_version: '2024-05-01-preview', surface: nil, deployments: [], model_whitelist: [], model_blacklist: [], model_cache_ttl: 3600, tls: { enabled: false, verify: :peer }, instances: {} } end |
.discover_instances ⇒ Object
44 45 46 47 48 49 |
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 44 def self.discover_instances instances = {} discover_default_instance(instances) discover_named_instances(instances) instances end |
.provider_class ⇒ Object
36 37 38 |
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 36 def self.provider_class Provider end |
.registry_publisher ⇒ Object
40 41 42 |
# File 'lib/legion/extensions/llm/azure_foundry.rb', line 40 def self.registry_publisher @registry_publisher ||= Legion::Extensions::Llm::RegistryPublisher.new(provider_family: PROVIDER_FAMILY) end |