Skip to content

Commit

Permalink
Prompt templates implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebowczyk committed Oct 28, 2024
1 parent f1f18d4 commit 0238af1
Show file tree
Hide file tree
Showing 79 changed files with 3,661 additions and 664 deletions.
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"ext-dom": "*",
"cebe/markdown": "^1.2",
"duzun/hquery": "^3.1",
"eftec/bladeone": "^4.16",
"gioni06/gpt3-tokenizer": "^1.2",
"guzzlehttp/psr7": "^2.7",
"illuminate/database": "^11.10",
Expand All @@ -49,7 +50,6 @@
"spatie/array-to-xml": "^3.3",
"spatie/browsershot": "^4.1",
"spatie/php-structure-discoverer": "^2.1",
"spatie/yaml-front-matter": "^2.0",
"symfony/browser-kit": "^7.1",
"symfony/css-selector": "^7.1",
"symfony/dom-crawler": "^7.1",
Expand All @@ -58,7 +58,8 @@
"symfony/var-dumper": "^6.4 || ^7.0",
"toolkit/cli-utils": "^2.0",
"twig/twig": "^3.0",
"vimeo/psalm": "dev-master"
"vimeo/psalm": "dev-master",
"webuni/front-matter": "^2.0"
},
"config": {
"allow-plugins": {
Expand All @@ -70,13 +71,15 @@
"require": {
"php": "^8.2",
"ext-fileinfo": "*",
"ext-simplexml": "*",
"adbario/php-dot-notation": "^3.3",
"aimeos/map": "^3.8",
"guzzlehttp/guzzle": "^7.8",
"phpdocumentor/reflection-docblock": "^5.4",
"phpstan/phpdoc-parser": "^1.29",
"psr/event-dispatcher": "^1.0",
"psr/log": "^3.0",
"spatie/yaml-front-matter": "^2.0",
"symfony/intl": "^7.1",
"symfony/property-access": "^6.4 || ^7.0",
"symfony/property-info": "^6.4 || ^7.0",
Expand Down
26 changes: 26 additions & 0 deletions config/prompt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
return [
'defaultSetting' => 'twig',

'settings' => [
'twig' => [
'templateType' => 'twig',
'resourcePath' => '/../../../../prompts/twig',
'cachePath' => '/tmp/instructor/cache/twig',
'extension' => '.twig',
'frontMatterTags' => ['{#---', '---#}'],
'frontMatterFormat' => 'yaml',
'metadata' => [
'autoReload' => true,
],
],
'blade' => [
'templateType' => 'blade',
'resourcePath' => '/../../../../prompts/blade',
'cachePath' => '/tmp/instructor/cache/blade',
'extension' => '.blade.php',
'frontMatterTags' => ['{{--', '--}}'],
'frontMatterFormat' => 'yaml',
],
]
];
Loading

0 comments on commit 0238af1

Please sign in to comment.