We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b524ba commit b1686ecCopy full SHA for b1686ec
litellm/google_genai/adapters/handler.py
@@ -38,7 +38,7 @@ def _prepare_completion_kwargs(
38
completion_kwargs: Dict[str, Any] = dict(completion_request)
39
40
# feed metadata for custom callback
41
- if "metadata" in extra_kwargs:
+ if extra_kwargs is not None and "metadata" in extra_kwargs:
42
completion_kwargs["metadata"] = extra_kwargs["metadata"]
43
44
if stream:
0 commit comments