Skip to content

Commit 4b17179

Browse files
authored
fix #9
1 parent bf0b22a commit 4b17179

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ DEEPSEEK_API_KEY="your_api_key"
3838
### Basic Usage
3939

4040
```php
41-
use DeepseekClient;
41+
use DeepSeekClient;
4242

43-
$deepseek = app(DeepseekClient::class);
43+
$deepseek = app(DeepSeekClient::class);
4444
$response = $deepseek->query('Hello deepseek, I am Laravel Framework , how are you Today ^_^ ?')->run();
4545
print_r("deepseek API response : " . $response);
4646
```
@@ -50,9 +50,9 @@ print_r("deepseek API response : " . $response);
5050
### Advanced Usage
5151

5252
```php
53-
use DeepseekClient;
53+
use DeepSeekClient;
5454

55-
$deepseek = app(DeepseekClient::class);
55+
$deepseek = app(DeepSeekClient::class);
5656

5757
// Another way, with customization
5858
$response = $deepseek

src/DeepseekLaravelServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function register()
2525
{
2626
$this->mergeConfigFrom(__DIR__.'/../config/deepseek.php', 'deepseek');
2727

28-
$this->app->singleton('DeepseekClient', function () {
28+
$this->app->singleton(DeepSeekClient::class, function () {
2929
$apiKey = config('deepseek.api_key');
3030
$baseUrl = config('deepseek.base_url');
3131
$timeout = config('deepseek.timeout');
@@ -34,7 +34,7 @@ public function register()
3434
throw ApiKeyIsMissing::create();
3535
}
3636

37-
return DeepseekClient::build($apiKey, $baseUrl, $timeout);
37+
return DeepSeekClient::build($apiKey, $baseUrl, $timeout);
3838
});
3939
}
4040
}

tests/Feature/DeepseekLaravelTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Feature;
44

5-
use DeepseekClient;
5+
use DeepSeekClient;
66
use DeepSeek\Enums\Configs\DefaultConfigs;
77
use Illuminate\Support\Facades\Config;
88
use Orchestra\Testbench\TestCase;

0 commit comments

Comments
 (0)