Skip to content

Commit 6513405

Browse files
committed
Linting
1 parent 079acd9 commit 6513405

File tree

1 file changed

+2
-0
lines changed
  • integrations/openai/src/databricks_openai/utils

1 file changed

+2
-0
lines changed

integrations/openai/src/databricks_openai/utils/clients.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ def _strip_strict_from_tools(tools: Any) -> Any:
4949
tool.get("function", {}).pop("strict", None)
5050
return tools
5151

52+
5253
def _strip_strict_from_kwargs(kwargs: dict) -> dict:
5354
"""Strip 'strict' from top-level kwargs which causes issues for GPT models."""
5455
kwargs.pop("strict", None) # Remove top-level strict if present
5556
return kwargs
5657

58+
5759
def _should_strip_strict(model: str | None) -> bool:
5860
"""Determine if strict should be stripped based on model name.
5961

0 commit comments

Comments
 (0)