mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
pass model param in suggestPolicyTemplates
This commit is contained in:
parent
3fca6e5a97
commit
2ff97f2ac1
1 changed files with 3 additions and 1 deletions
|
|
@ -5593,7 +5593,8 @@ export const enrichPolicyTemplate = async (
|
|||
export const suggestPolicyTemplates = async (
|
||||
accessToken: string,
|
||||
attackExamples: string[],
|
||||
description: string
|
||||
description: string,
|
||||
model: string
|
||||
) => {
|
||||
try {
|
||||
const url = proxyBaseUrl
|
||||
|
|
@ -5608,6 +5609,7 @@ export const suggestPolicyTemplates = async (
|
|||
body: JSON.stringify({
|
||||
attack_examples: attackExamples.filter((e) => e.trim()),
|
||||
description,
|
||||
model,
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue