mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 12:21:52 +00:00
Move helper into impl file + fix merging conflicts
This commit is contained in:
parent
04f0b8fe11
commit
c8808b4700
3 changed files with 18 additions and 21 deletions
|
@ -59,10 +59,10 @@ def available_distribution_specs() -> List[DistributionSpec]:
|
|||
},
|
||||
),
|
||||
DistributionSpec(
|
||||
distribution_id="local-plus-tgi-inference",
|
||||
distribution_type="local-plus-tgi-inference",
|
||||
description="Use TGI for running LLM inference",
|
||||
providers={
|
||||
Api.inference: remote_provider_id("tgi"),
|
||||
Api.inference: remote_provider_type("tgi"),
|
||||
Api.safety: "meta-reference",
|
||||
Api.agentic_system: "meta-reference",
|
||||
Api.memory: "meta-reference-faiss",
|
||||
|
@ -72,7 +72,9 @@ def available_distribution_specs() -> List[DistributionSpec]:
|
|||
|
||||
|
||||
@lru_cache()
|
||||
def resolve_distribution_spec(distribution_type: str) -> Optional[DistributionSpec]:
|
||||
def resolve_distribution_spec(
|
||||
distribution_type: str,
|
||||
) -> Optional[DistributionSpec]:
|
||||
for spec in available_distribution_specs():
|
||||
if spec.distribution_type == distribution_type:
|
||||
return spec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue