Skip to content

Commit

Permalink
Config update
Browse files Browse the repository at this point in the history
Move back to gpt-4o for OpenAI. No access for new models yet...
  • Loading branch information
hrsa authored Feb 3, 2025
2 parents 56c30c6 + 351f988 commit 755e3ec
Show file tree
Hide file tree
Showing 16 changed files with 149 additions and 143 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/TelegramController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function processWebhook(TelegramService $telegramService): void

if (!$telegramMessage) {
Log::warning('Invalid Telegram message', ['payload' => $payload]);

return;
}

Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/GenerateCalendarJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private function generateOpenAIResponse(): CreateResponse
*/
private function generateMistralResponse(): stdClass
{
$response = Http::mistral()->timeout(10)->post('/chat/completions', [
$response = Http::mistral()->timeout(Config::integer('mistral.request_timeout'))->post('/chat/completions', [
'model' => Config::string('mistral.model'),
'messages' => $this->aiMessages,
'max_tokens' => 3700,
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"lemonsqueezy/laravel": "^1.8.1",
"masbug/flysystem-google-drive-ext": "^2.4.1",
"openai-php/laravel": "^0.9.1",
"spatie/icalendar-generator": "^2.9.0",
"spatie/icalendar-generator": "^2.9.1",
"spatie/laravel-backup": "^8.8.2",
"spatie/laravel-data": "^4.13.0",
"spatie/laravel-ray": "^1.39.0",
"symfony/http-client": "^7.2.3",
"tightenco/ziggy": "^2.5.0"
"tightenco/ziggy": "^2.5.1"
},
"require-dev": {
"driftingly/rector-laravel": "^1.2.6",
Expand All @@ -43,7 +43,7 @@
"pestphp/pest-plugin-laravel": "^2.4",
"rector/rector": "^1.2.10",
"spatie/laravel-ignition": "^2.9.0",
"spatie/laravel-sitemap": "^7.3.3"
"spatie/laravel-sitemap": "^7.3.4"
},
"autoload": {
"psr-4": {
Expand Down
77 changes: 38 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/openai.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

'api_key' => env('OPENAI_API_KEY'),
'organization' => env('OPENAI_ORGANIZATION'),
'model' => 'o3-mini',
'model' => 'gpt-4o',
'system_prompt' => env('OPENAI_SYSTEM_PROMPT')
? base64_decode(env('OPENAI_SYSTEM_PROMPT'))
: '',
Expand Down
Loading

0 comments on commit 755e3ec

Please sign in to comment.