mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-31 16:01:46 +00:00
minor updates
This commit is contained in:
parent
04a2965967
commit
39f0c5f544
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ class ShieldRunnerMixin:
|
||||||
responses = await asyncio.gather(
|
responses = await asyncio.gather(
|
||||||
*[
|
*[
|
||||||
self.safety_api.run_shield(
|
self.safety_api.run_shield(
|
||||||
identifier=identifier,
|
shield_id=identifier,
|
||||||
messages=messages,
|
messages=messages,
|
||||||
)
|
)
|
||||||
for identifier in identifiers
|
for identifier in identifiers
|
||||||
|
|
|
@ -80,7 +80,7 @@ class MockInferenceAPI:
|
||||||
|
|
||||||
class MockSafetyAPI:
|
class MockSafetyAPI:
|
||||||
async def run_shield(
|
async def run_shield(
|
||||||
self, shield_identifier: str, messages: List[Message]
|
self, shield_id: str, messages: List[Message]
|
||||||
) -> RunShieldResponse:
|
) -> RunShieldResponse:
|
||||||
return RunShieldResponse(violation=None)
|
return RunShieldResponse(violation=None)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue