anthropics / anthropics/anthropic-sdk-python

x-stainless-timeout header is NOT_GIVEN on default requests

未關閉
#1,676 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
3.9k
分支
853
平均合併
1 天 18 小時
30 天內合併 PR
11

描述

When `options.timeout` is `NotGiven`, `_build_headers()` sets `x-stainless-timeout` to the string `"NOT_GIVEN"` via `str(options.timeout)`, while `x-stainless-read-timeout` correctly falls back to the client default.

Proof after fix:
```
PASS x-stainless-timeout= 600
```

PR incoming.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。