Module: Legion::Extensions::Llm::Openai::DiscoveryHealthDisplay

Included in:
Actor::DiscoveryRefresh
Defined in:
lib/legion/extensions/llm/openai/discovery_health_display.rb

Overview

Display-only health + capabilities projection into settings[<config_name>] after each registry commit. The in-memory AvailabilityFact remains the routing authority; the settings writes are plain serializable data read by the legion-llm status API (D14). <config_name> is the settings key the instance was discovered under — never the derived host:port id.

Constant Summary collapse

LEGACY_CAPABILITY_NAMES =

Fleet operation → legacy capability name, matching ScopedRefresher::LegacyCoordinatorAdapter's LEGACY_CAPABILITIES.

{
  chat: :completion,
  stream_chat: :streaming,
  embed: :embedding,
  image: :image,
  transcribe: :audio_transcription,
  translate: :audio_transcription,
  speak: :audio_speech,
  moderate: :moderation
}.freeze