Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
makowskid committed Nov 10, 2024
1 parent 825918d commit 74e6d90
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## November 10, 2024 - v1.2.1
- removing the requirement to publish config file

## August 26, 2024 - v1.2.0 update
- Generate Keywords/Tags & Summarize methods aquired optional `context` that allows to pass additional processing instructions for the provided `content`
- API usage optimized internally, switched to AI job dispatch/result endpoint pairing mode
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ If you don't use Laravel then you can find

## Installation

1. You can install the package via `composer`:
Follow these steps to install and set up the SharpAPI Laravel Client package.

1. Install the package via `composer`:

```bash
composer require sharpapi/sharpapi-laravel-client
php artisan vendor:publish --tag=sharpapi-laravel-client
```

2. Register at [SharpAPI.com](https://sharpapi.com/) and get the API key.
Expand All @@ -41,7 +42,13 @@ php artisan vendor:publish --tag=sharpapi-laravel-client
SHARP_API_KEY=key
```

**That's it!**
4. **[OPTIONAL]** Publish the configuration file `sharpapi-client.php`.

> **Note:** You no longer need to publish the configuration file to use this package. By default, the package will use sensible default values. You only need to publish the configuration if you wish to customize it.
```bash
php artisan vendor:publish --tag=sharpapi-laravel-client
```

---

Expand Down
6 changes: 4 additions & 2 deletions src/SharpApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ public function boot(): void
*/
public function register(): void
{
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/sharpapi-client.php', 'sharpapi-laravel-client');
// Merge the package configuration with the app configuration.
$this->mergeConfigFrom(
__DIR__.'/../config/sharpapi-client.php', 'sharpapi-client'
);

// Register the main class to use with the facade
$this->app->singleton('sharpapi-laravel-client', function () {
Expand Down

0 comments on commit 74e6d90

Please sign in to comment.