Преглед на файлове

chore: update default llm model id

Cat преди 1 година
родител
ревизия
c260ac1bfa
променени са 3 файла, в които са добавени 27 реда и са изтрити 27 реда
  1. 22 22
      composer.lock
  2. 4 4
      config/.config.example.php
  3. 1 1
      src/Models/User.php

+ 22 - 22
composer.lock

@@ -3016,16 +3016,16 @@
         },
         {
             "name": "nesbot/carbon",
-            "version": "3.3.1",
+            "version": "3.4.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/briannesbitt/Carbon.git",
-                "reference": "8ff64b92c1b1ec84fcde9f8bb9ff2ca34cb8a77a"
+                "reference": "8eab8983c83c30e0bacbef8d311e3f3b8172727f"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8ff64b92c1b1ec84fcde9f8bb9ff2ca34cb8a77a",
-                "reference": "8ff64b92c1b1ec84fcde9f8bb9ff2ca34cb8a77a",
+                "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/8eab8983c83c30e0bacbef8d311e3f3b8172727f",
+                "reference": "8eab8983c83c30e0bacbef8d311e3f3b8172727f",
                 "shasum": ""
             },
             "require": {
@@ -3118,7 +3118,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2024-05-01T06:54:22+00:00"
+            "time": "2024-05-24T14:26:34+00:00"
         },
         {
             "name": "nikic/fast-route",
@@ -3239,16 +3239,16 @@
         },
         {
             "name": "openai-php/client",
-            "version": "v0.9.0",
+            "version": "v0.9.2",
             "source": {
                 "type": "git",
                 "url": "https://github.com/openai-php/client.git",
-                "reference": "7b5652b5e107b04b67aa5bc6560acf162ef2be97"
+                "reference": "a4e519a3efa380c1dc9d64b1fd1fecf8fc466ba2"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/openai-php/client/zipball/7b5652b5e107b04b67aa5bc6560acf162ef2be97",
-                "reference": "7b5652b5e107b04b67aa5bc6560acf162ef2be97",
+                "url": "https://api.github.com/repos/openai-php/client/zipball/a4e519a3efa380c1dc9d64b1fd1fecf8fc466ba2",
+                "reference": "a4e519a3efa380c1dc9d64b1fd1fecf8fc466ba2",
                 "shasum": ""
             },
             "require": {
@@ -3263,14 +3263,14 @@
             "require-dev": {
                 "guzzlehttp/guzzle": "^7.8.1",
                 "guzzlehttp/psr7": "^2.6.2",
-                "laravel/pint": "^1.15.3",
-                "mockery/mockery": "^1.6.11",
+                "laravel/pint": "^1.16.0",
+                "mockery/mockery": "^1.6.12",
                 "nunomaduro/collision": "^7.10.0",
                 "pestphp/pest": "^2.34.7",
                 "pestphp/pest-plugin-arch": "^2.7",
-                "pestphp/pest-plugin-type-coverage": "^2.8.1",
-                "phpstan/phpstan": "^1.10.67",
-                "rector/rector": "^1.0.4",
+                "pestphp/pest-plugin-type-coverage": "^2.8.2",
+                "phpstan/phpstan": "^1.11.2",
+                "rector/rector": "^1.1.0",
                 "symfony/var-dumper": "^6.4.7"
             },
             "type": "library",
@@ -3311,7 +3311,7 @@
             ],
             "support": {
                 "issues": "https://github.com/openai-php/client/issues",
-                "source": "https://github.com/openai-php/client/tree/v0.9.0"
+                "source": "https://github.com/openai-php/client/tree/v0.9.2"
             },
             "funding": [
                 {
@@ -3327,7 +3327,7 @@
                     "type": "github"
                 }
             ],
-            "time": "2024-05-21T18:50:46+00:00"
+            "time": "2024-05-27T19:27:25+00:00"
         },
         {
             "name": "php-http/client-common",
@@ -7150,16 +7150,16 @@
         },
         {
             "name": "composer/pcre",
-            "version": "3.1.3",
+            "version": "3.1.4",
             "source": {
                 "type": "git",
                 "url": "https://github.com/composer/pcre.git",
-                "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8"
+                "reference": "04229f163664973f68f38f6f73d917799168ef24"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/composer/pcre/zipball/5b16e25a5355f1f3afdfc2f954a0a80aec4826a8",
-                "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8",
+                "url": "https://api.github.com/repos/composer/pcre/zipball/04229f163664973f68f38f6f73d917799168ef24",
+                "reference": "04229f163664973f68f38f6f73d917799168ef24",
                 "shasum": ""
             },
             "require": {
@@ -7201,7 +7201,7 @@
             ],
             "support": {
                 "issues": "https://github.com/composer/pcre/issues",
-                "source": "https://github.com/composer/pcre/tree/3.1.3"
+                "source": "https://github.com/composer/pcre/tree/3.1.4"
             },
             "funding": [
                 {
@@ -7217,7 +7217,7 @@
                     "type": "tidelift"
                 }
             ],
-            "time": "2024-03-19T10:26:25+00:00"
+            "time": "2024-05-27T13:40:54+00:00"
         },
         {
             "name": "composer/semver",

+ 4 - 4
config/.config.example.php

@@ -109,14 +109,14 @@ $_ENV['keep_connect'] = false;            // 流量耗尽用户限速至 1Mbps
 $_ENV['llm_backend'] = 'openai'; // openai/google-ai/huggingface/cf-workers-ai/anthropic
 #OpenAI ChatGPT
 $_ENV['openai_api_key'] = '';
-$_ENV['openai_model'] = 'gpt-4-turbo-preview';
+$_ENV['openai_model'] = 'gpt-4o';
 #Google AI API
 $_ENV['google_ai_api_key'] = '';
-$_ENV['google_ai_model_id'] = 'gemini-1.5-pro-latest';
+$_ENV['google_ai_model_id'] = 'gemini-1.5-flash';
 #Vertex AI API
 $_ENV['vertex_ai_access_token'] = '';
 $_ENV['vertex_ai_location'] = 'us-central1';
-$_ENV['vertex_ai_model_id'] = 'gemini-1.0-pro';
+$_ENV['vertex_ai_model_id'] = 'gemini-1.5-flash-preview-0514';
 $_ENV['vertex_ai_project_id'] = '';
 #Hugging Face Inference API
 $_ENV['huggingface_api_key'] = '';
@@ -124,7 +124,7 @@ $_ENV['huggingface_endpoint_url'] = '';
 #Cloudflare Workers AI
 $_ENV['cf_workers_ai_account_id'] = '';
 $_ENV['cf_workers_ai_api_token'] = '';
-$_ENV['cf_workers_ai_model_id'] = '@cf/meta/llama-2-7b-chat-int8';
+$_ENV['cf_workers_ai_model_id'] = '@cf/meta/llama-3-8b-instruct';
 #Anthropic
 $_ENV['anthropic_api_key'] = '';
 $_ENV['anthropic_model_id'] = 'claude-3-opus-20240229';

+ 1 - 1
src/Models/User.php

@@ -295,7 +295,7 @@ final class User extends Model
                 'traffic_report.tpl',
                 [
                     'user' => $this,
-                    'text' => '下面是系统中目前的最新公告:<br><br>' . $ann . '<br><br>晚安!',
+                    'text' => '站点公告:<br><br>' . $ann . '<br><br>晚安!',
                     'lastday_traffic' => $lastday_traffic,
                     'enable_traffic' => $enable_traffic,
                     'used_traffic' => $used_traffic,