Elffuss BraidHub

kikocis/llama-stack public

Fix for safety
Changeset9b2105b161e4d624fbf29f6fa1346fe1badd6911b53c5ef6a9c306b385181d0f
AuthorAshwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-17 19:56 -07:00
CommitterAshwin Bharambe <ashwin.bharambe@gmail.com> · 2024-09-17 19:56 -07:00
Parents7e907e713048

Browse the files at this changeset

2 files changed

modified docs/cli_reference.md +1 −1
@@ -500,7 +500,7 @@
500500 Similarly you can test safety (if you configured llama-guard and/or prompt-guard shields) by:
501501
502502 ```
503-python -m llama_stack.safety.client localhost 5000
503+python -m llama_stack.apis.safety.client localhost 5000
504504 ```
505505
506506 You can find more example scripts with client SDKs to talk with the Llama Stack server in our [llama-stack-apps](https://github.com/meta-llama/llama-stack-apps/tree/main/sdk_examples) repo.
modified llama_stack/providers/impls/meta_reference/safety/shields/contrib/third_party_shield.py +1 −1
@@ -8,7 +8,7 @@
88
99 from llama_models.llama3.api.datatypes import Message
1010
11-from llama_stack.safety.meta_reference.shields.base import (
11+from llama_stack.providers.impls.meta_reference.safety.shields.base import (
1212 OnViolationAction,
1313 ShieldBase,
1414 ShieldResponse,