- Issue created by @ivnish
Sometimes we need to use proxy for OpenAI. OpenAI library supports it. Needs to add Drupal integration.
$client = \OpenAI::factory()
->withApiKey($this->apiKey)
->withHttpClient(new \GuzzleHttp\Client([
'proxy' => 'socks5://USER:PASSWORD@ip:port',
]));
I think we can add "use proxy" checkbox and "proxy string" textfield for settings form.
And modify loadClient() function to use it if necessary.
Active
1.0
Code