How to use proxy?
-
Hi! OpenAI is restricted for use in some countries. I have an API key, but I can’t connect because of these restrictions. I found a setting in bp-better-messages/addons/ai/dependencies/guzzlehttp/guzzle/src/Client.php,
use ClientTrait;
/**
* @var array Default request options
*/
private $config;
$client = new Client([
'base_uri' => 'https://mysyte.ru/',
'timeout' => 5,
'allow_redirects' => true,
'proxy' => 'https://185.191.236.162:3128'
]);
$response = $client->request('GET', '/users');but it’s not working. I still can’t connect.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.