-
Notifications
You must be signed in to change notification settings - Fork 2
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
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
database/migrations/2023_09_02_162641_add_llm_function_.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
use App\Models\LlmFunction; | ||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
$params = get_fixture_v2('content_to_voice.json', false); | ||
LlmFunction::firstOrCreate([ | ||
'label' => 'content_to_voice', | ||
], [ | ||
'label' => 'content_to_voice', | ||
'description' => 'Use the string of content to create a voice audio version of the content using an external service', | ||
'parameters' => $params, | ||
'active' => 1, | ||
]); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
// | ||
} | ||
}; |
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,10 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"content": { | ||
"type": "string", | ||
"description": "This is the content to convert to an audio file" | ||
} | ||
}, | ||
"required": ["content"] | ||
} |