composer.json: Version bump to0.1.1.
src/AccessTokenManager.php: New file for managing access tokens.
src/GeminiClient.php: Refactored to useAccessTokenManagerand added retry logic.src/GeminiPrompt.php: Improved validation and default value handling.src/GeminiResponse.php: Default value for$responseparameter in constructor.src/HTTPClient.php: Switched fromfile_get_contentstocURLfor HTTP POST requests.src/Validate.php: Added constants for valid regions, models, categories, thresholds, and property types.
The changes include improvements to error handling, code maintainability, and the addition of new features for better access token management and API request retries.## Release Notes for v0.1.2
example.php: Changed method call fromsetContent([])toresetContent()for clearing the prompt.src/GeminiPrompt.php: AddedresetContentmethod andbase_contentsproperty to reset the prompt to its base state.
The changes include code refactoring for better clarity and maintainability.## Release Notes for v0.1.3
composer.json: Version bump to0.1.3.composer.lock: Updated content hash.src/GeminiResponse.php: Added error handling in the constructor.tests/GeminiResponseTest.php: Added test for simulated error response.
The changes include dependency updates and improved error handling in response parsing.## Release Notes for v0.1.4
composer.json: Version bump to0.1.4.composer.lock: Updated content hash.example.php: Refactored to use JSON configuration files.src/GeminiPrompt.php: Code refactoring and added new methods.
example-client.json: New example configuration for the client.example-prompt.json: New example configuration for the prompt.
The changes include refactoring for better code organization, the addition of example configuration files, and updates to dependencies.
composer.json: Version bump to0.1.5.src/GeminiPrompt.php: AddedsetContentsandpushMultiplemethods.src/Validate.php: AddedVALID_ROLESconstant and improved content validation logic.
The changes include additional methods for content management and enhancements to validation logic.