mirror of
https://github.com/Shiva108/ai-llm-red-team-handbook.git
synced 2026-10-13 11:17:51 +02:00
chore: Added optional 'model' parameter to schema.py in prompt_injection_tester
This commit is contained in:
1 parent
ba0e3f6ef6
commit
9f73ae23ff
1 file changed
+2
@@ -111,6 +111,7 @@ class Config(BaseModel):
|
||||
cls,
|
||||
target_url: str,
|
||||
token: Optional[str] = None,
|
||||
model: Optional[str] = None,
|
||||
api_type: str = "openai",
|
||||
timeout: int = 30,
|
||||
categories: Optional[List[str]] = None,
|
||||
@@ -128,6 +129,7 @@ class Config(BaseModel):
|
||||
target=TargetConfig(
|
||||
url=target_url,
|
||||
token=token,
|
||||
model=model,
|
||||
api_type=api_type,
|
||||
timeout=timeout,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user