Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/guidellm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def benchmark():
default=BenchmarkGenerativeTextArgs.get_default("backend_kwargs"),
help=(
"JSON string of arguments to pass to the backend. E.g., "
'\'{"api_key": "apikey-*", "verify": false}\''
'\'{"api_key": "apikey-*", "verify": false}\' or '
'\'{"extras": {"body": {"temperature": 0.6, "top_p": 0.95}}}\' for sampling params.'
),
)
@click.option(
Expand Down
7 changes: 7 additions & 0 deletions src/guidellm/backends/openai/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ class OpenAIHttpBackendArgs(BackendArgs):
)
},
)
extras: dict[str, Any] | None = Field(
default=None,
description=(
"Optional request arguments to merge into each request (e.g. body fields). "
'Use {"body": {"temperature": 0.6, "top_p": 0.95}} to set sampling params.'
),
)

@field_validator("request_format")
@classmethod
Expand Down
Loading