Skip to content

Commit 849e2c7

Browse files
committed
fix: ai solutions
1 parent 3b1a54b commit 849e2c7

File tree

84 files changed

+89
-38364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+89
-38364
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
1212
php: [8.2, 8.3, 8.4]
13-
laravel: [11.*, 12.*]
13+
laravel: [12.*]
1414
stability: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: 11.*
17-
testbench: 9.*
1816
- laravel: 12.*
1917
testbench: 10.*
2018

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
],
2020
"require": {
2121
"php": "^8.2",
22-
"illuminate/contracts": "^11.0|^12.0",
22+
"illuminate/contracts": "^12.0",
2323
"laravel/pint": "^1.0",
24+
"prism-php/prism": "^0.81.0",
25+
"spatie/backtrace": "^1.7",
2426
"spatie/laravel-data": "^4.4",
2527
"spatie/laravel-package-tools": "^1.12",
2628
"spatie/once": "^3.0"
@@ -29,8 +31,7 @@
2931
"brianium/paratest": "^7.0.6",
3032
"doctrine/dbal": "^3.0|^4.0",
3133
"nunomaduro/collision": "^8.1",
32-
"openai-php/laravel": "^0.8.1|^0.11",
33-
"orchestra/testbench": "^9.0|^10.0",
34+
"orchestra/testbench": "^10.0",
3435
"phpstan/extension-installer": "^1.1",
3536
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
3637
"phpstan/phpstan-phpunit": "^1.0|^2.0",

config/restify.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,23 @@
160160
],
161161

162162
/*
163-
| Specify if restify can call OpenAI for solution generation.
163+
| Specify if restify can call AI for solution generation using Prism.
164164
|
165-
| By default this feature is enabled, but you still have to extend the Exception handler with the Restify one and set the API key.
165+
| By default this feature is enabled, but you still have to extend the Exception handler with the Restify one and configure Prism.
166166
*/
167167
'ai_solutions' => [
168168
/*
169-
| Specify the OpenAI model to use.
169+
| Specify the AI provider to use with Prism.
170170
*/
171-
'model' => 'gpt-4.1-mini',
171+
'provider' => 'openai',
172172

173173
/*
174-
| Specify the OpenAI temperature to use.
174+
| Specify the AI model to use with Prism.
175+
*/
176+
'model' => 'gpt-4o-mini',
177+
178+
/*
179+
| Specify the maximum tokens for the AI response.
175180
*/
176181
'max_tokens' => 1000,
177182
],

docs/.vuepress/1.0.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/.vuepress/2.0.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/.vuepress/3.0.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/.vuepress/4.0.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

docs/.vuepress/5.0.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)