mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-19 15:38:52 +00:00
chore: distrogen enables telemetry by default
# What does this PR do? ## Test Plan Telemetry provider was added to all distributions in the latest commit but the protocol mapping was missing, causing a KeyError when the stack tried to validate provider compliance.
This commit is contained in:
parent
f22aaef42f
commit
3679612b5f
14 changed files with 29 additions and 0 deletions
|
@ -25,6 +25,7 @@ from llama_stack.core.datatypes import (
|
|||
ModelInput,
|
||||
Provider,
|
||||
ShieldInput,
|
||||
TelemetryConfig,
|
||||
ToolGroupInput,
|
||||
)
|
||||
from llama_stack.core.distribution import get_provider_registry
|
||||
|
@ -182,6 +183,7 @@ class RunConfigSettings(BaseModel):
|
|||
metadata_store: dict | None = None
|
||||
inference_store: dict | None = None
|
||||
conversations_store: dict | None = None
|
||||
telemetry: TelemetryConfig = Field(default_factory=lambda: TelemetryConfig(enabled=True))
|
||||
|
||||
def run_config(
|
||||
self,
|
||||
|
@ -256,6 +258,7 @@ class RunConfigSettings(BaseModel):
|
|||
"server": {
|
||||
"port": 8321,
|
||||
},
|
||||
"telemetry": self.telemetry.model_dump(exclude_none=True) if self.telemetry else None,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue