We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 079acd9 commit 6513405Copy full SHA for 6513405
integrations/openai/src/databricks_openai/utils/clients.py
@@ -49,11 +49,13 @@ def _strip_strict_from_tools(tools: Any) -> Any:
49
tool.get("function", {}).pop("strict", None)
50
return tools
51
52
+
53
def _strip_strict_from_kwargs(kwargs: dict) -> dict:
54
"""Strip 'strict' from top-level kwargs which causes issues for GPT models."""
55
kwargs.pop("strict", None) # Remove top-level strict if present
56
return kwargs
57
58
59
def _should_strip_strict(model: str | None) -> bool:
60
"""Determine if strict should be stripped based on model name.
61
0 commit comments