Explorar el Código

Update script helpers

Aleksandr Trofimov hace 3 meses
padre
commit
b4b055f6d4
Se han modificado 2 ficheros con 6 adiciones y 3 borrados
  1. 1 1
      scripts/update_checker.php
  2. 5 2
      scripts/update_gen.php

+ 1 - 1
scripts/update_checker.php

@@ -19,7 +19,7 @@ class SQLUpdateChecker {
     const API_ENDPOINT = 'https://api.openai.com/v1/chat/completions';
     const MODEL_VER = 5;
 //    const MODEL = 'gpt-4-turbo';
-    const MODEL = 'gpt-5'; // 'gpt-5-mini';
+    const MODEL = 'gpt-5.6-terra'; // 'gpt-5'; // 'gpt-5-mini';
     const MAX_TOKENS_PER_REQUEST = 140000; // Conservative limit for model context // 120000 for gpt4
     const MAX_TOKENS_GPT5 = 9000; // can be increased if "finish_reason: length" error occured
     const MAX_TOKENS = 4000;

+ 5 - 2
scripts/update_gen.php

@@ -21,7 +21,7 @@ class SQLUpdateChecker {
     const API_ENDPOINT = 'https://api.openai.com/v1/chat/completions';
     const MODEL_VER = 5;
 //    const MODEL = 'gpt-4-turbo';
-    const MODEL = 'gpt-5'; // 'gpt-5-mini';
+    const MODEL = 'gpt-5.6-terra'; // 'gpt-5-mini';
     const MAX_TOKENS_PER_REQUEST = 140000; // Conservative limit for model context // 120000 for gpt4
     const MAX_TOKENS_GPT5 = 9000; // can be increased if "finish_reason: length" error occured
     const MAX_TOKENS = 4000;
@@ -407,7 +407,10 @@ sys_std_roles => name
 sys_std_roles_members => account_id
 sys_std_widgets_bookmarks => widget_id+profile_id
 
-Write minimal necessary code. 
+Write minimal necessary code. Don't use complex SQL like CASE, WHEN, THEN. 
+Output must be compatible with MySQL 5.5.3 and MariaDB 5.5.
+Make sure that not changed fields aren't updated.
+Don't make long delete statements with long condition, simple easy to read approach is better.
 
 OLD install.sql:
 ```sql