Skip to content

docs: update default API requests timeout from 15min(900s) to 27min(1620s)#101

Open
dcbert wants to merge 1 commit intoxai-org:mainfrom
dcbert:docs/fix-default-timeout
Open

docs: update default API requests timeout from 15min(900s) to 27min(1620s)#101
dcbert wants to merge 1 commit intoxai-org:mainfrom
dcbert:docs/fix-default-timeout

Conversation

@dcbert
Copy link

@dcbert dcbert commented Feb 28, 2026

Update default API requests timeout from 15min(900s) to 27min(1620s)

Checklist

  • I have read both the CONTRIBUTING.md and Contributor License Agreement documents.
  • I have created an issue or feature request and received approval from xAI maintainers. (minor changes like fixing typos can skip this step)
  • I have tested my changes locally and they pass all CI checks.
  • I have added necessary documentation or updated existing documentation.

Description

Updates all documentation to match the actual code default:

  • _DEFAULT_RPC_TIMEOUT_SECONDS = 27 * 60 (1620 seconds) in client.py
  • Was previously documented as 15 minutes (900 seconds)

Changed:

  • src/xai_sdk/client.py (BaseClient docstring)
  • README.md (Timeouts section + Error Codes table)

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Other (please specify)

Additional Notes

N/A

@dcbert dcbert requested a review from a team as a code owner February 28, 2026 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant