]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Change model to 'gpt-5-mini' and add model_parameters
authorhunter-nl <junobox@gmail.com>
Wed, 10 Sep 2025 14:51:40 +0000 (16:51 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Sep 2025 14:51:40 +0000 (16:51 +0200)
Updated model configuration to use 'gpt-5-mini' and added model parameters.

conf/modules.d/gpt.conf

index c76a08c9205ad0a4f95bbd350da83781b5ac616b..3942d34b21c3ae7d18b6360c7d8b8c7d454782c6 100644 (file)
@@ -18,11 +18,20 @@ gpt {
   # Your key to access the API (add this to enable this plugin)
   #api_key = "xxx";
   # Model name
-  model = "gpt-4o-mini";
-  # Maximum tokens to generate
-  max_tokens = 1000;
-  # Temperature for sampling
-  temperature = 0.0;
+  model = "gpt-5-mini"; # or parallel model requests [ "gpt-5-mini", "gpt-4o-mini" ];
+  # Per-model parameters
+  model_parameters = {
+    "gpt-5-mini" = {
+      max_completion_tokens = 1000,
+    },
+    "gpt-5-nano" = {
+      max_completion_tokens = 1000,
+    },
+    "gpt-4o-mini" = {
+      max_tokens = 1000,
+      temperature = 0.0,
+    }
+  };
   # Timeout for requests
   timeout = 10s;
   # Prompt for the model (use default if not set)
@@ -50,4 +59,4 @@ gpt {
   .include(try=true,priority=5) "${DBDIR}/dynamic/gpt.conf"
   .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/gpt.conf"
   .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/gpt.conf"
-}
\ No newline at end of file
+}