diff --git a/README.md b/README.md index 7f63347..bf3b1bf 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ Interact with Gemini's API: ```php use Gemini\Enums\ModelVariation; +use Gemini\Gemini; use Gemini\GeminiHelper; -use Gemini; $yourApiKey = getenv('YOUR_API_KEY'); $client = Gemini::client($yourApiKey); @@ -121,7 +121,7 @@ $result->text(); // Hello! How can I assist you today? If necessary, it is possible to configure and create a separate client. ```php -use Gemini; +use Gemini\Gemini; $yourApiKey = getenv('YOUR_API_KEY'); @@ -146,7 +146,7 @@ For a complete list of supported input formats and methods in Gemini API v1, see Generate a response from the model given an input message. ```php -use Gemini; +use Gemini\Gemini; $yourApiKey = getenv('YOUR_API_KEY'); $client = Gemini::client($yourApiKey); diff --git a/composer.json b/composer.json index e12a855..5be1c48 100644 --- a/composer.json +++ b/composer.json @@ -41,10 +41,7 @@ "autoload": { "psr-4": { "Gemini\\": "src/" - }, - "files": [ - "src/Gemini.php" - ] + } }, "autoload-dev": { "psr-4": { diff --git a/src/Gemini.php b/src/Gemini.php index 1a54359..51c627f 100644 --- a/src/Gemini.php +++ b/src/Gemini.php @@ -2,6 +2,8 @@ declare(strict_types=1); +namespace Gemini; + use Gemini\Client; use Gemini\Factory; diff --git a/tests/Client.php b/tests/Client.php index 41d08b0..7c45f94 100644 --- a/tests/Client.php +++ b/tests/Client.php @@ -1,5 +1,6 @@