mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-07-03 14:05:26 +02:00
10 lines
272 B
Python
10 lines
272 B
Python
"""Shared utility helpers for provider request builders."""
|
|
|
|
from typing import Any
|
|
|
|
|
|
def set_if_not_none(body: dict[str, Any], key: str, value: Any) -> None:
|
|
"""Set body[key] = value only when value is not None."""
|
|
if value is not None:
|
|
body[key] = value
|