Skip to content

Commit 47fdf38

Browse files
Update src/do_gradientai/resources/chat/completions.py
Co-authored-by: Robert Craigie <[email protected]>
1 parent 5d38e2e commit 47fdf38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/do_gradientai/resources/chat/completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def create(
155155
"""
156156

157157
# This method requires an inference_key to be set via client argument or environment variable
158-
if not hasattr(self._client, "inference_key") or not self._client.inference_key:
158+
if not self._client.inference_key:
159159
raise TypeError(
160160
"Could not resolve authentication method. Expected the inference_key to be set for chat completions."
161161
)

0 commit comments

Comments
 (0)