From: hunter-nl Date: Wed, 10 Sep 2025 14:51:40 +0000 (+0200) Subject: Change model to 'gpt-5-mini' and add model_parameters X-Git-Tag: 3.13.0~3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9615ad2ad1bad92331a983415ebc394446810d58;p=thirdparty%2Frspamd.git Change model to 'gpt-5-mini' and add model_parameters Updated model configuration to use 'gpt-5-mini' and added model parameters. --- diff --git a/conf/modules.d/gpt.conf b/conf/modules.d/gpt.conf index c76a08c920..3942d34b21 100644 --- a/conf/modules.d/gpt.conf +++ b/conf/modules.d/gpt.conf @@ -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 +}