Closed ldubost closed 1 year ago
can confirm, tried everything for a couple of hours until i noticed the option is ignored.
+1
Thank you for providing the fix @ldubost! I've just pushed a new tag v.3.1.2
, could you verify if that resolves this issue?
I can confirm it works well with this version 3.1.2 ! I'm able to contact LocalAI !
The feature mentioned in #172 and #157 and commited in #161 is actually not working. The setting from the CHATGPT_REVERSE_PROXY is ignored because it is added inside an options object like that:
when it should be added directly in the clientOptions object like this:
This has been verified on my installation where chatgpt is getting called even when a URL for localAI is specified. After fixing the code, the setting is taken into account.
I'm sending a pull request very quickly.