]> git.ipfire.org Git - thirdparty/rspamd.git/commit
The gpt4all api which is openai compatible does not support response_format and defau... 5276/head
authorJohn Quaglieri <john@mail.baby>
Thu, 2 Jan 2025 14:14:21 +0000 (09:14 -0500)
committerJohn Quaglieri <john@mail.baby>
Thu, 2 Jan 2025 14:14:21 +0000 (09:14 -0500)
commitd48fbaddc96bf1c4fba42e035b7323738ab35a55
treeeaac248dfb14577541ecd6cb28f59d805ac5c051
parentd19d9ea80837bbfb72b825772f04b6e0f59d6713
The gpt4all api which is openai compatible does not support response_format and defaults to json_objec. This change adds the ability to add

  include_response_format = false;

In the gpt.conf local.d settings

and exclude sending response_format. No other changes are needed for gpt4all api fixing the error:

 gpt.lua:365: got reply: {"error":{"code":null,"message":"'response_format' is not supported","param":null,"type":"invalid_request_error"}}
src/plugins/lua/gpt.lua