Commit Graph
18 Commits
Author SHA1 Message Date
bmen25124andCohee 6d4be9116d Added saveMetadataDebounced to context, fixed 0 values for custom-req… (#4386)
* Added saveMetadataDebounced to context, fixed 0 values for custom-request payloads, fixed system role prefix

* Update filtering logic

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-15 21:39:49 +03:00
bmen25124andCohee cd176039ef Added structured output for common APIs (#4272)
* Added structured output for common APIs

* eslint

* Added frontend impl

* Type name change

* Unprefix json_schema, apply review suggestions

* Add schema to generateQuietPrompt, add comments

* Prettify diff

* Extract JSON from Claude response

* Add structured gen for Mistral

* Hack to support schema for DeepSeek

* Hack JSON schema for AI21

* Add Groq structured gen

* Add JSON mode for pollinations

* Add JSON schema for perplexity

* Add JSON schema for AIML

* Using extractJsonFromData in custom-request, added google rules for flattenSchema

* Fix response parsing

* Fix Google

* Fixed json parse

* Expose generateRaw to getContext

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-07-15 21:54:36 +03:00
omahs d7d20a67fa Fix typos 2025-05-29 11:56:59 +02:00
bmen25124 294dc3b3b1 Fixed out of index error 2025-05-12 23:00:12 +03:00
bmen25124 6609c941a9 Added prefill for custom-request->text completion 2025-05-12 21:52:16 +03:00
bmen25124 fc5e0563ba Added ability to override request payload 2025-04-11 19:07:00 +03:00
bmen25124 4736f533a5 Added proxy support to ChatCompletionService 2025-04-11 19:04:32 +03:00
bmen25124 4e207c2cf0 Removed duplicate codes 2025-03-26 23:38:02 +03:00
bmen25124 972b1e5fa7 Fixed variable naming, better jsdoc 2025-03-26 23:30:09 +03:00
bmen25124 a7d48b1aed Added overridable instruct settings, removed macro override 2025-03-26 23:21:48 +03:00
bmen25124 c5f251c6e3 Added stop string cleanup, better stopping string param 2025-03-26 22:35:10 +03:00
bmen25124 17e0058763 Changed options type 2025-03-21 22:16:57 +03:00
bmen25124 7619396053 Better naming 2025-03-21 22:09:41 +03:00
bmen25124 ec474f5571 Added stream support to "custom-request" 2025-03-21 20:44:09 +03:00
bmen25124 86de927ab9 Added "custom_url" to ChatCompletionService 2025-03-17 14:54:59 +03:00
bmen25124 d42a81f97c New connection manager events, ConnectionManagerRequestService (#3603) 2025-03-16 16:58:34 +02:00
bmen25124 28fc498ee6 Added error field check 2025-03-04 03:39:00 +03:00
bmen25124andCohee 7d568dd4e0 Generic generate methods (#3566)
* 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>
2025-03-03 10:30:20 +02:00