-
Notifications
You must be signed in to change notification settings - Fork 570
Closed
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.34.0
Steps to Reproduce
My code
stream = await self._client.chat.completions.create(
messages=messages,
model="gpt-4.1",
tools = openai.NOT_GIVEN,
stream_options = {"include_usage": True},
stream = True,
timeout = httpx.Timeout(self._conn_options.timeout),
** self._extra_kwargs
)Expected Result
OpenAI completion request call should work.
Actual Result
TypeError: object of type 'NotGiven' has no len()
Culprit:
| if tools is not None and len(tools) > 0: |
Default value of tools is also NotGiven in OpenAI SDK which is not None and doesn't have any len()
sbabashahi
Metadata
Metadata
Assignees
Projects
Status
No status