mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
feat(openai_movement)!: Change URL structures to kill /openai/v1 (part 2)
This commit is contained in:
parent
3a09f00cdb
commit
f6b2cce734
10 changed files with 3 additions and 2834 deletions
|
@ -114,7 +114,6 @@ class Safety(Protocol):
|
|||
"""
|
||||
...
|
||||
|
||||
@webmethod(route="/openai/v1/moderations", method="POST", level=LLAMA_STACK_API_V1)
|
||||
@webmethod(route="/moderations", method="POST", level=LLAMA_STACK_API_V1)
|
||||
async def run_moderation(self, input: str | list[str], model: str) -> ModerationObject:
|
||||
"""Classifies if text and/or image inputs are potentially harmful.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue