mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
feat: Moderation api for Code Scanner Provider
This commit is contained in:
parent
61582f327c
commit
ef15c74307
3 changed files with 99 additions and 6 deletions
|
@ -130,8 +130,8 @@ providers:
|
|||
type: sqlite
|
||||
db_path: ${env.SQLITE_STORE_DIR:=~/.llama/distributions/starter}/files_metadata.db
|
||||
safety:
|
||||
- provider_id: llama-guard
|
||||
provider_type: inline::llama-guard
|
||||
- provider_id: CodeScanner
|
||||
provider_type: inline::code-scanner
|
||||
config:
|
||||
excluded_categories: []
|
||||
agents:
|
||||
|
@ -212,8 +212,8 @@ inference_store:
|
|||
db_path: ${env.SQLITE_STORE_DIR:=~/.llama/distributions/starter}/inference_store.db
|
||||
models: []
|
||||
shields:
|
||||
- shield_id: llama-guard
|
||||
provider_id: ${env.SAFETY_MODEL:+llama-guard}
|
||||
- shield_id: CodeScanner
|
||||
provider_id: ${env.SAFETY_MODEL:+CodeScanner}
|
||||
provider_shield_id: ${env.SAFETY_MODEL:=}
|
||||
vector_dbs: []
|
||||
datasets: []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue