generated from vormkracht10/laravel-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
240 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Ask a question | ||
url: https://github.com/vormkracht10/laravel-gpt/discussions/new?category=q-a | ||
url: https://github.com/vormkracht10/laravel-embeddings/discussions/new?category=q-a | ||
about: Ask the community for help | ||
- name: Request a feature | ||
url: https://github.com/vormkracht10/laravel-gpt/discussions/new?category=ideas | ||
url: https://github.com/vormkracht10/laravel-embeddings/discussions/new?category=ideas | ||
about: Share ideas for new features | ||
- name: Report a security issue | ||
url: https://github.com/vormkracht10/laravel-gpt/security/policy | ||
url: https://github.com/vormkracht10/laravel-embeddings/security/policy | ||
about: Learn how to notify us for sensitive bugs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Changelog | ||
|
||
All notable changes to `laravel-gpt` will be documented in this file. | ||
All notable changes to `laravel-embeddings` will be documented in this file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
// config for Vormkracht10/Embeddings | ||
return [ | ||
'enabled' => env('EMBED_ENABLED', true), | ||
'driver' => env('EMBED_DRIVER', 'openai'), | ||
'queue' => true, | ||
'database' => [ | ||
'connection' => env('EMBED_DATABASE_CONNECTION', 'pgsql'), | ||
'table' => env('EMBED_DB_TABLE', 'embeddings'), | ||
], | ||
'openai' => [ | ||
'key' => env('OPENAI_API_KEY'), | ||
], | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
src/Commands/LaravelGptCommand.php → src/Commands/LaravelEmbedCommand.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Vormkracht10\Embedding; | ||
|
||
use Vormkracht10\Embedding\Jobs\MakeEmbeddable; | ||
use Vormkracht10\Embedding\Jobs\RemoveFromEmbed; | ||
|
||
class Embed | ||
{ | ||
/** | ||
* The job class that should make models searchable. | ||
* | ||
* @var string | ||
*/ | ||
public static $makeEmbeddableJob = MakeEmbeddable::class; | ||
|
||
/** | ||
* The job that should remove models from the search index. | ||
* | ||
* @var string | ||
*/ | ||
public static $removeFromEmbedJob = RemoveFromEmbed::class; | ||
|
||
/** | ||
* Specify the job class that should make models searchable. | ||
* | ||
* @return void | ||
*/ | ||
public static function makeEmbeddableUsing(string $class) | ||
{ | ||
static::$makeEmbeddableJob = $class; | ||
} | ||
|
||
/** | ||
* Specify the job class that should remove models from the search index. | ||
* | ||
* @return void | ||
*/ | ||
public static function RemoveFromEmbedUsing(string $class) | ||
{ | ||
static::$removeFromEmbedJob = $class; | ||
} | ||
} |
Oops, something went wrong.