# OpenAI API のレスポンスが遅い問題 ## タイムアウトはどれくらいに設定すべき? 公式ライブラリのデフォルト値は 10 分。 [openai-python/src/openai/\_constants.py at 19ecaafeda91480d0dfd7ce44e7317220b9d48b6 · openai/openai-python · GitHub](https://github.com/openai/openai-python/blob/19ecaafeda91480d0dfd7ce44e7317220b9d48b6/src/openai/_constants.py#L9) ```python # default timeout is 10 minutes DEFAULT_TIMEOUT = httpx.Timeout(timeout=600.0, connect=5.0) ```