Skip to content

Commit b9215c1

Browse files
Update garak/generators/websocket.py
Accepted suggestion to align constructor with Generator patterns. Simplified init signature, removed custom config parsing since Configurable handles this automatically, and moved supports_multiple_generations to class level as requested. Co-authored-by: Jeffrey Martin <[email protected]> Signed-off-by: dyrtyData <[email protected]>
1 parent fe830be commit b9215c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

garak/generators/websocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class WebSocketGenerator(Generator):
5252
- uri: WebSocket URL (ws:// or wss://)
5353
- name: Display name for the service
5454
- auth_type: Authentication method (none, basic, bearer, custom)
55-
- username/password: Basic authentication credentials
56-
- api_key: API key for bearer token auth
55+
- username: Basic authentication username
56+
- api_key: API key for bearer token auth or password for basic auth
5757
- key_env_var: Environment variable name for API key
5858
- req_template: String template with $INPUT and $KEY placeholders
5959
- req_template_json_object: JSON object template for structured messages

0 commit comments

Comments
 (0)