* Added translate to reasoning block
* Added mising reset value
* Shortcut nullable type
* Added reasoning edited/deleted events, better naming
* Fixed async call
* Added await to saveChat calls
* Exported updateReasoningUI
* Removed translated reasoning on edit if auto mode is none
* Added new value check before updating reasoning block, fixed an issue that display value stays same when we edit the message.
* Translate reasoning before the main message
* Fixed auto mode translate for reasoning message
* Translate reasoning first. Prevent out of bounds access
* Fix translating reasoning on swipe generation
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* sendOpenAIRequest/getTextGenGenerationData methods are improved, now it can use custom API, instead of active ones
* Added missing model param
* Removed unnecessary variable
* active_oai_settings -> settings
* settings -> textgenerationwebui_settings
* Better presetToSettings names, simpler settings name in getTextGenGenerationData,
* Removed unused jailbreak_system
* Reverted most core changes, new custom-request.js file
* Forced stream to false, removed duplicate method, exported settingsToUpdate
* Rewrite typedefs to define props one by one
* Added extractData param for simplicity
* Fixed typehints
* Fixed typehints (again)
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>