1506 Commits

Author SHA1 Message Date
Wolfsblvt
d94ac48b65 Add thinking time for hidden reasoning models
- Streamline reasoning UI update functionality
- Add helper function to identify hidden reasoning models
- Fix/update reasoning time calculation to actually utilize start gen time
- Fix reasoning UI update on swipe
- add CSS class for hidden reasoning blocks (to make it possible to hide for users)
2025-02-08 00:45:33 +01:00
Cohee
5886bb6b3a
Merge pull request #3442 from SillyTavern/more-reasoning-ui
Smaller improvements and fixes to the reasoning UI
2025-02-07 23:55:18 +02:00
Wolfsblvt
4094887624 Add jsdoc 2025-02-07 21:46:41 +01:00
Cohee
a2aef5ea4a Use array.includes 2025-02-07 22:04:21 +02:00
Wolfsblvt
cc401b2c9d Whelp, seems like o1 main still no streaming 2025-02-07 20:12:10 +01:00
Wolfsblvt
d1ec9eb8ab Enabled streaming for o1 and o3
- They do be supporting it now
2025-02-07 19:50:01 +01:00
Wolfsblvt
25d1db3852 Fix issues with reasoning add/delete 2025-02-06 22:39:29 +01:00
Wolfsblvt
06303bb62f Move reasoning stuff to reasoning.js 2025-02-06 21:50:33 +01:00
Cohee
d9fc76f336
Merge pull request #3430 from qvink/generate_before_combine_prompts_await
await GENERATE_BEFORE_COMBINE_PROMPTS
2025-02-04 21:45:59 +02:00
qvink
e2c3af2114 Changing the event GENERATE_BEFORE_COMBINE_PROMPTS to an await emit() instead of emitAndWait(). 2025-02-04 11:22:23 -07:00
Cohee
6ececb2ceb Fix text display on stream abort 2025-02-04 10:16:26 +02:00
Wolfsblvt
da531f12c2 Fix reasoning error on empty chat 2025-02-04 00:20:17 +01:00
pcpthm
c4be4d7d61 Fix reasoning duplicated when continue is interrupted 2025-02-03 21:07:49 +09:00
Cohee
d9f2ee0d48 Localize reasoning duration string 2025-02-02 18:51:55 +02:00
Cohee
900c0caffa Fix class set condition 2025-02-02 18:02:23 +02:00
Wolfsblvt
a14e3b0657 Improve reasoning block inline editing 2025-02-02 12:58:01 +01:00
Wolfsblvt
2d335e27ff Modify when "Add reasoning" button shows up 2025-02-02 12:21:14 +01:00
Wolfsblvt
8fb95f9a84 Reasoning inline edit improvements + style 2025-02-02 10:37:21 +01:00
Wolfsblvt
3818290e4d Add reasoning time duration
- Add reasoning time calculation, saved in message metadata
- Add event when reasoning streaming is finished
2025-02-02 07:32:45 +01:00
Wolfsblvt
e7c799ae2a Cooler styling for reasoning blocks 2025-02-02 03:21:52 +01:00
Cohee
6deaa31d41 Move typing indicator to an extension
https://github.com/SillyTavern/Extension-TypingIndicator
2025-02-02 03:54:14 +02:00
Cohee
cc7355358d Fix undefined reasoning append on continue 2025-02-01 19:06:39 +02:00
Cohee
d2cc8b36b8 Fix cfgMessage handling 2025-02-01 16:01:04 +02:00
Cohee
3fe3430006 Fix undefined array access for CFG prompt 2025-02-01 15:36:04 +02:00
Cohee
e59114c1c5 Another crack at o3 2025-01-31 23:14:41 +02:00
Cohee
7d937b36da Merge branch 'staging' into text-completion-include-reasoning 2025-01-31 20:33:02 +02:00
Cohee
5bd3d9a518 Merge branch 'staging' into reasoning-continue 2025-01-31 13:51:09 +00:00
Cohee
9710d88a88 Stop smooth streaming immediately on abort 2025-01-31 13:38:23 +00:00
Cohee
f7eab66026 Fix streaming start appending undefined to reasoning block 2025-01-31 13:30:10 +00:00
Cohee
67a4d10b75 Fix substituting macros in reasoning of a first message 2025-01-31 13:23:22 +00:00
pcpthm
753a99faf9 Support reasoning for OpenRouter text completion 2025-01-31 21:41:56 +09:00
pcpthm
9ecf261a76 Always add reasoning for continue 2025-01-31 21:06:15 +09:00
Cohee
dfc2eb32c8
Merge pull request #3386 from SillyTavern/reasoning-parse
Reasoning blocks auto-parsing
2025-01-31 11:41:10 +02:00
Cohee
c32e0bdde7 Autoswipe: Fix endless loop if blacklist empty 2025-01-29 23:01:37 +02:00
Cohee
d0abba23dc Add reasoning auto-parsing, always show reasoning prefix/suffix in Markdown, respect space trim preference 2025-01-29 21:38:08 +02:00
Cohee
9e8fd3f5a0
Merge pull request #3382 from SillyTavern/staging
Staging into reasoning-regex
2025-01-29 11:38:50 +02:00
Cohee
0c9b301a57 Prevent ephemeral message extra changes vanish upon swiping 2025-01-28 15:39:09 +00:00
Cohee
d616dfef38 Prevent log warning spam 2025-01-28 00:03:38 +02:00
Cohee
0fb9884ab8 Skill issue 2025-01-27 23:59:25 +02:00
Cohee
6fc342d446 Add regex processing for reasoning blocks 2025-01-27 23:06:07 +02:00
Cohee
8b5e0df2d7 Refactor reasoning placeholder clean-up 2025-01-27 21:56:15 +02:00
Cohee
bfedf20db5 Add reasoning tokens to token count. 2025-01-26 18:29:31 +02:00
Cohee
eb798fa4f1 Move reasoning-specific code into its own module 2025-01-26 16:47:13 +02:00
Cohee
17d4175b47 Functional reasoning edit 2025-01-26 05:14:17 +02:00
Cohee
45d4d1bb3e [wip] Open reasoning editor 2025-01-26 02:49:10 +02:00
Cohee
8fc880b69b Early stopping if prompt reasoning limit reached 2025-01-26 02:07:50 +02:00
Cohee
94ed548353 Formatting setting to send reasoning back to the model
Supersedes #3352
2025-01-25 22:41:08 +02:00
Cohee
9d73189133 Add updateMessageBlock and appendMediaToMessage to getContext 2025-01-25 00:38:13 +02:00
Cohee
e3885c2b5c Combine functions 2025-01-25 00:29:55 +02:00
Cohee
9250be348d Split if condition 2025-01-25 00:28:16 +02:00