---
title: Filter the HTTP request arguments sent by the AI Assistant
url: "https://www.seopress.org/support/hooks/filter-the-http-request-arguments-sent-by-the-ai-assistant/"
lang: en-US
updated: 2026-06-16
hook_name: seopress_ai_assistant_request_args
required_version: 10.0
---

# Filter the HTTP request arguments sent by the AI Assistant

- **Hook name:** `seopress_ai_assistant_request_args`
- **Required version:** 10.0

```php
add_filter( 'seopress_ai_assistant_request_args', 'sp_ai_assistant_request_args', 10, 2 );
function sp_ai_assistant_request_args( $args, $provider ) {
	// Increase the timeout for AI Assistant requests.
	$args['timeout'] = 60;

	return $args;
};
```

Source: [https://gist.github.com/wp-seopress/4f2e4806f9b587fc1af13c990ec15aba](https://gist.github.com/wp-seopress/4f2e4806f9b587fc1af13c990ec15aba)



