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 5d38e2e commit 47fdf38Copy full SHA for 47fdf38
src/do_gradientai/resources/chat/completions.py
@@ -155,7 +155,7 @@ def create(
155
"""
156
157
# 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:
+ if not self._client.inference_key:
159
raise TypeError(
160
"Could not resolve authentication method. Expected the inference_key to be set for chat completions."
161
)
0 commit comments