Skip to content

Commit 618bd16

Browse files
Adding the missing super() for open_ai_client
Signed-off-by: Sunish Sheth <[email protected]>
1 parent ee136e2 commit 618bd16

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

databricks/sdk/mixins/open_ai_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def http_request(self,
8282
:returns: :class:`ExternalFunctionResponse`
8383
"""
8484

85-
return super.http_request(connection_name=conn,
86-
method=method,
87-
path=path,
88-
headers=js.dumps(headers),
89-
json=js.dumps(json),
90-
params=js.dumps(params),
91-
)
85+
return super().http_request(connection_name=conn,
86+
method=method,
87+
path=path,
88+
headers=js.dumps(headers) if headers is not None else None,
89+
json=js.dumps(json) if json is not None else None,
90+
params=js.dumps(params) if params is not None else None,
91+
)

0 commit comments

Comments
 (0)