Skip to content
Merged
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
5 changes: 1 addition & 4 deletions src/any_llm/providers/huggingface/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ def _convert_params(params: CompletionParams, **kwargs: dict[str, Any]) -> dict[
# timeout is passed to the client instantiation, should not reach the `client.chat_completion` call.
result_kwargs.pop("timeout", None)

if params.max_tokens is not None:
result_kwargs["max_new_tokens"] = params.max_tokens

if params.reasoning_effort == "auto":
params.reasoning_effort = None

Expand All @@ -111,7 +108,7 @@ def _convert_params(params: CompletionParams, **kwargs: dict[str, Any]) -> dict[
result_kwargs.update(
params.model_dump(
exclude_none=True,
exclude={"max_tokens", "model_id", "messages", "response_format", "parallel_tool_calls"},
exclude={"model_id", "messages", "response_format", "parallel_tool_calls"},
)
)

Expand Down