You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Move backend-specific args to --backend_args
Refactors the CLI arguments to move backend-specific options under the
`--backend-args` flag.
- Removes `--target-header` and `--target-skip-ssl-verify` from the CLI.
- Updates the `OpenAIHTTPBackend` to parse `headers` and `verify` from the `backend_args` dictionary.
- Renames `verify_ssl` to the protocol-neutral term `verify`.
- Updates documentation and tests to reflect the new argument structure.
Copy file name to clipboardExpand all lines: docs/guides/cli.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,8 @@ These options configure how `guidellm` connects to the system under test.
19
19
| Option | Description |
20
20
| --- | --- |
21
21
|`--target <URL>`|**Required.** The endpoint of the target system, e.g., `http://localhost:8080`. Can also be set with the `GUIDELLM__OPENAI__BASE_URL` environment variable. |
22
-
|`--target-header <HEADER>`| A header to send with requests to the target. Can be specified multiple times. Example: `--target-header "Authorization: Bearer my-secret-token"`. |
23
-
|`--target-skip-ssl-verify`| A flag to disable SSL certificate verification when connecting to the target. |
24
22
|`--backend-type <TYPE>`| The type of backend to use. Defaults to `openai_http`. |
23
+
|`--backend-args <JSON>`| A JSON string for backend-specific arguments. For example: `--backend-args '{"headers": {"Authorization": "Bearer my-token"}, "verify": false}'` to pass custom headers and disable certificate verification. |
25
24
|`--model <NAME>`| The ID of the model to benchmark within the backend. |
Copy file name to clipboardExpand all lines: docs/guides/configuration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ You can configure the connection to the target system using environment variable
31
31
|`GUIDELLM__OPENAI__HEADERS`| A JSON string representing a dictionary of headers to send to the target. These headers will override any default headers. |`export GUIDELLM__OPENAI__HEADERS='{"Authorization": "Bearer my-token"}'`|
32
32
|`GUIDELLM__OPENAI__ORGANIZATION`| The OpenAI organization to use for requests. |`export GUIDELLM__OPENAI__ORGANIZATION="org-12345"`|
33
33
|`GUIDELLM__OPENAI__PROJECT`| The OpenAI project to use for requests. |`export GUIDELLM__OPENAI__PROJECT="proj-67890"`|
34
-
|`GUIDELLM__OPENAI__VERIFY_SSL`| Set to `false` or `0` to disable SSL certificate verification. |`export GUIDELLM__OPENAI__VERIFY_SSL=false`|
34
+
|`GUIDELLM__OPENAI__VERIFY`| Set to `false` or `0` to disable certificate verification. |`export GUIDELLM__OPENAI__VERIFY=false`|
35
35
|`GUIDELLM__OPENAI__MAX_OUTPUT_TOKENS`| The default maximum number of tokens to request for completions. |`export GUIDELLM__OPENAI__MAX_OUTPUT_TOKENS=2048`|
36
36
37
37
### General HTTP Settings
@@ -54,5 +54,5 @@ You can also place these variables in a `.env` file in your project's root direc
0 commit comments