Skip to content

Commit 930665e

Browse files
committed
update doc
1 parent 67a9e55 commit 930665e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ echo $response;
8787
use DeepSeek\DeepSeekClient;
8888
use DeepSeek\Enums\Models;
8989

90-
$response = DeepSeekClient::build('your-api-key')
91-
->withBaseUrl('https://api.deepseek.com/v2')
90+
$client = DeepSeekClient::build(apiKey:'your-api-key', baseUrl:'https://api.deepseek.com/v3', timeout:30, clientType:'guzzle');
91+
92+
$response = $client
9293
->withModel(Models::CODER->value)
94+
->withStream()
9395
->withTemperature(1.2)
9496
->run();
9597

@@ -102,9 +104,13 @@ the package already built with `symfony Http client`, if you need to use packag
102104
ex with symfony:
103105

104106
```php
105-
$response = DeepSeekClient::build('your-api-key', clientType:'symfony')
106-
->query('Explain quantum computing in simple terms')
107-
->run();
107+
// with defaults baseUrl and timeout
108+
$client = DeepSeekClient::build('your-api-key', clientType:'symfony')
109+
// with customization
110+
$client = DeepSeekClient::build(apiKey:'your-api-key', baseUrl:'https://api.deepseek.com/v3', timeout:30, 'symfony');
111+
112+
$client->query('Explain quantum computing in simple terms')
113+
->run();
108114
```
109115

110116
### Get Models List

0 commit comments

Comments
 (0)