Skip to content

Conversation

@kargnas
Copy link
Contributor

@kargnas kargnas commented Jan 15, 2026

Summary

Adds a global request_timeout configuration to config/prism.php.

Why

When I run models that require long generation times (e.g., Gemini 3 Pro with more than 50,000 input tokens) often exceed the default 30-second timeout. Previously, I had to manually configure the client for each instance, which was so troublesome. Furthermore, there was no official documentation for the timeout in the PrismPHP document.

This change allows setting a global timeout via the PRISM_REQUEST_TIMEOUT environment variable.

Changes

  • Added request_timeout to config/prism.php (default: 30s as before).
  • Updated InitializesClient to apply this timeout to the base HTTP client.

@kargnas kargnas force-pushed the feat/global-request-timeout branch 2 times, most recently from f1b50be to dbd1c0c Compare January 15, 2026 20:15
@kargnas kargnas force-pushed the feat/global-request-timeout branch from dbd1c0c to 29c0054 Compare January 15, 2026 21:01
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