anthropics / anthropics/anthropic-sdk-python

x-stainless-timeout header is NOT_GIVEN on default requests

Abierto
#1,676 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
3.9k
Forks
853
Merge medio
1 d 18 h
PR fusionados (30 d)
11

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.