mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
ApiSurface -> Api
This commit is contained in:
parent
7890921e5c
commit
125fdb1b2a
13 changed files with 76 additions and 87 deletions
|
@ -8,7 +8,7 @@ import asyncio
|
|||
|
||||
from typing import Dict
|
||||
|
||||
from llama_toolchain.distribution.datatypes import Adapter, ApiSurface
|
||||
from llama_toolchain.distribution.datatypes import Adapter, Api
|
||||
|
||||
from .config import SafetyConfig
|
||||
from .api.endpoints import * # noqa
|
||||
|
@ -23,7 +23,7 @@ from .shields import (
|
|||
)
|
||||
|
||||
|
||||
async def get_adapter_impl(config: SafetyConfig, _deps: Dict[ApiSurface, Adapter]):
|
||||
async def get_adapter_impl(config: SafetyConfig, _deps: Dict[Api, Adapter]):
|
||||
assert isinstance(config, SafetyConfig), f"Unexpected config type: {type(config)}"
|
||||
|
||||
impl = MetaReferenceSafetyImpl(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue