Commit Graph
92 Commits
Author SHA1 Message Date
TensorNullandCohee 41c74fd142 Add CometAPI as a model provider in "Chat Completion" (#4402)
* feat: Add support for CometAPI, including API key management and model selection features.

* Some code fixes

* Fix loading model from presets

* Add logo image

* Enable tool calling, reasoning effort, reasoning display, structured generation

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-22 20:30:42 +03:00
André M PivaandCohee 5cc0ae526d feat: Add close all reasonings button (#4375)
* feat: Add close all reasonings button

* Move to actions block, change icon

* Remove unneded styles

* Ditto

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-13 21:23:44 +03:00
Cohee d21afa1ae5 Fix Magistral latest reasoning extraction
Fixes #4339
2025-08-01 19:58:09 +03:00
Cohee 0e38bfbf05 Feat/moonshot api (#4330)
* moonshot

* Partial mode + JSON schema

* Add logo image

* Limit max temp to 1

* Add to captioning extension
2025-07-31 00:01:04 +03:00
Cohee 982dca58ba Enable reasoning parsing for Pollinations and AIML 2025-06-13 21:46:41 +03:00
omahs d7d20a67fa Fix typos 2025-05-29 11:56:59 +02:00
NijikaMyWaifuandCohee 157315cd68 Add Vertex AI express mode support (#3977)
* Add Vertex AI express mode support
Split Google AI Studio and Vertex AI

* Add support for Vertex AI, including updating default models and related settings, modifying frontend HTML to include Vertex AI options, and adjusting request processing logic in the backend API.

* Log API name in the console

* Merge sysprompt toggles back

* Use Gemma tokenizers for Vertex and LearnLM

* AI Studio parity updates

* Add link to express mode doc. Also technically it's not a form

* Split title

* Use array includes

* Add support for Google Vertex AI in image captioning feature

* Specify caption API name, add to compression list

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-05-22 20:10:53 +03:00
Cohee 1c52099ed6 Add xAI as chat completion source 2025-04-10 22:59:10 +03:00
Wolfsblvt 6c8714c016 Add collapse argument to /reasoning-set command
Allows controlling visibility of reasoning blocks through slash commands by adding a boolean 'collapse' parameter
Respects default expansion settings when not explicitly provided

This gives users direct control over block visibility during command execution rather than relying solely on global preferences
2025-04-06 21:21:37 +02:00
Cohee b1346910a4 Adjust reasoning template migration procedure 2025-03-18 00:47:20 +02:00
Cohee 271c93a504 Rename DeepSeek template, add Blank reasoning template 2025-03-18 00:32:31 +02:00
Cohee 6ff06ff04b Use performFuzzySearch 2025-03-18 00:29:03 +02:00
Cohee cf2671c6d7 Merge branch 'staging' into reasoning-template 2025-03-16 22:51:28 +02:00
bmen25124 d42a81f97c New connection manager events, ConnectionManagerRequestService (#3603) 2025-03-16 16:58:34 +02:00
Cohee 62342b35e2 Reasoning template 2025-03-16 15:01:31 +02:00
qvink 874affb2f2 exporting parseReasoningFromString() 2025-03-12 17:01:03 -06:00
Cohee 73230272f3 Apply regex to multiswipe reasoning, set reasoning_type to Parsed 2025-03-10 10:48:31 +00:00
Cohee 96d79ac4e9 Merge branch 'staging' into continue-from-reasoning 2025-03-09 01:19:25 +02:00
Cohee 0ea64050ff Parse reasoning in multi-swipe swipes 2025-03-08 23:06:56 +02:00
Cohee 980ed76cc3 Fix auto-parsing of continue from reasoning
Continues #3606
2025-03-08 12:58:26 +02:00
Wolfsblvt 91fe2841e3 Fix reasoning rendering on auto-save message 2025-03-08 05:52:11 +01:00
bmen25124andCohee 50f1e3f0f2 Added translation to reasoning block (#3617)
* 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>
2025-03-06 21:30:17 +02:00
Cohee 7be6e0d5af Fix continue duplicating reasoning block 2025-03-04 00:42:50 +02:00
Cohee 9c4bffc487 Merge pull request #3577 from SillyTavern/the-best-model-tm
Add gpt-4.5-preview (best model ™️ - most expensive for sure)
2025-02-27 23:30:34 +02:00
Wolfsblvt ea643cce6e Add gpt-4.5-preview 2025-02-27 22:08:29 +01:00
Wolfsblvt b98556855d Fix undefined translation 2025-02-27 21:15:12 +01:00
Cohee 8b135f9ca3 Remove async from event handler 2025-02-25 21:52:03 +02:00
Cohee 422517ec93 Cancel debounced chat save if regular save is performed 2025-02-25 21:38:24 +02:00
Cohee eceaa9cacc Replace debounced save with regular 2025-02-25 21:32:39 +02:00
Wolfsblvt d28f39d77a Save chat on reasoning parse 2025-02-25 17:23:12 +01:00
Wolfsblvt 8bdc00e0b9 Fix reasoning not always being synced to swipe 2025-02-25 17:10:13 +01:00
Cohee b8ebed0f4c Claude 3.7 think mode 2025-02-24 23:43:13 +02:00
Cohee 4802e4bed2 Reasoning edit/parse updates
1. Parse reasoning on message edit
2. Reasoning edit follow 'auto-save' preference
2025-02-22 19:14:01 +02:00
Cohee 5c79c8e162 [chore] Reformat new code 2025-02-22 12:47:19 +02:00
yokuminto 13f76c974e reasoning or reasoning_content 2025-02-22 16:09:42 +08:00
Wolfsblvt b0a2f241d2 Fix hidden reasoning not allowing manual parsing 2025-02-21 18:01:25 +01:00
Cohee 87afb1633b reasoning-set: Return if message not found 2025-02-17 19:54:50 +02:00
Wolfsblvt 994d69508b Merge branch 'parse-reasoning-command-args' into reasoning-parsing-streaming 2025-02-17 03:54:24 +01:00
Wolfsblvt 1ad3a2b968 Add 'return' and 'strict' to /reasoning-parse
- Add 'return' arg to `/reasoning-parse` to decide whether to return the reasoning, or the content without reasoning. Defaulting to reasoning.
- Add 'strict' arg to `/reasoning-parse` to decide whether the reasoning block has to be at the beginning of the provided message or not. Defaulting to true.
- Update parsing of all reasoning (even the auto parse one) to be strict by default - meaning the regex block has to be at the beginning (excluding whitespaces)
2025-02-17 03:47:31 +01:00
Cohee 1156b648eb Merge branch 'staging' into reasoning-parsing-streaming 2025-02-16 23:12:41 +02:00
Cohee ec49b19aff Fix chat render when OpenRouter "website setting" model used 2025-02-16 22:46:44 +02:00
Wolfsblvt b3688087d5 Save reasoning type with the message
- use mes extras property to save where the reasoning came from
- update it accordingly on streaming, slash commands and manual add
- Modify title tooltip on reasoning header to show the origin where it makes sense, providing the user with a little bit more orientation about the reasoning.
2025-02-16 05:05:48 +01:00
Wolfsblvt bcea4248c4 Shouldn't parse reasoning if real reasoning there 2025-02-16 03:21:02 +01:00
Wolfsblvt 9590127bae Handle auto parsing reasoning during streaming
- Add function to handle auto parsing reasoning from the streamed message during streaming
- Only works when the reasoning prefix is EXACTLY at the beginning of the message
- Tried to keep this lightweight, no regex parsing, remembering the index, so it's simple string splicing
- Add utility function that trims a string only if `trim_spaces` is enabled
2025-02-16 03:09:20 +01:00
Wolfsblvt 37d9d4c253 Make sure auto-expand doesn't conflict with hidden 2025-02-15 21:44:06 +01:00
Wolfsblvt dd50f49176 Fix auto expand on thinking during new message 2025-02-15 10:23:36 +01:00
Cohee 1a52d3c293 Fix rendering of messages without extra object 2025-02-13 12:22:41 +00:00
Cohee d6bf3439b4 Don't try to update reasoning for impersonation stream 2025-02-13 10:55:32 +00:00
Wolfsblvt 93f3334ad0 Make hidden reasoning blocks not toggleable 2025-02-12 22:38:26 +01:00
Wolfsblvt b5fc7d6d4d Add toggle for showing hidden reasoning 2025-02-12 22:04:48 +01:00