We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31bb32a commit 3b3cacfCopy full SHA for 3b3cacf
README.md
@@ -15,12 +15,12 @@ composer require php-client/openai
15
```php
16
use PhpClient\OpenAI\OpenAI;
17
18
-$syncthing = new OpenAI(
+$openai = new OpenAI(
19
baseUrl: 'https://api.openai.com',
20
token: 'YOUR_API_TOKEN',
21
);
22
23
-$response = $syncthing->api->chat()->createChatCompletion(
+$response = $openai->api->chat()->createChatCompletion(
24
model: 'gpt-4o',
25
messages: [
26
['role' => 'user', 'content' => 'Hello'],
0 commit comments