use local GPT4ALL base URI
This commit is contained in:
parent
fa253e11ca
commit
519d4509df
|
@ -187,6 +187,7 @@ class ChatController extends BaseController
|
|||
try {
|
||||
// self::$client = OpenAI::client(config('chat.key'));
|
||||
self::$client = OpenAI::factory()
|
||||
->withBaseUri("http://localhost:4891/v1")
|
||||
->withApiKey(config('chat.key'))
|
||||
->withHttpClient($client = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client Discovery
|
||||
->withHttpHeader('OpenAI-Beta', 'assistants=v1')
|
||||
|
|
Loading…
Reference in New Issue