Commit Graph

407 Commits

Author SHA1 Message Date
420d568cd3 Pollinations - Text (#3985)
* [wip] Pollinations for text

* Implement generate API request

* Determine Pollinations model tools via models list

* Add Pollinations option to /model command

* Add Pollinations support to caption

* Update link to pollinations site

* Fix type errors in openai.js

* Fix API connection test to use AbortController for request cancellation

* Remove hard coded list of pollinations vision models

* Remove openai-audio from captioning models
2025-05-11 20:14:11 +03:00
6625e4036e Add clipboard script commands
Closes #3958
2025-05-05 21:58:06 +03:00
Cal
c677f0324a Add argument to command 2025-05-01 15:16:51 -06:00
6aeced98a6 Prefer const. I love const 2025-04-29 21:22:51 +03:00
6cb1eb3fe6 Change return to empty string on no single match 2025-04-29 15:21:45 +01:00
0cd0ce2374 Fix example formatting on /replace 2025-04-29 06:38:30 +01:00
5ddc8f17a0 Fix pattern checking on /replace 2025-04-29 06:37:48 +01:00
1c40ea10f4 Format examples correctly 2025-04-29 06:37:08 +01:00
729830c2fc Validate pattern 2025-04-29 06:19:59 +01:00
d5002863e0 Add both test and match regex commands
These commands match the behavior of the javascript `Regex.test()`
and `String.match()` / `String.matchAll()` functions.
2025-04-28 11:13:48 +01:00
870abe0776 Code clean-up 2025-04-22 22:36:01 +03:00
b39b7998ce refactor(slash-commands): 优化消息定位和滚动效果 2025-04-23 01:34:29 +08:00
59ebf2e5b8 refactor(slash-commands): 重命名 goto-floor 命令为 chat-jump
- 将命令名称从 'goto-floor' 修改为 'chat-jump',以更好地反映其功能
2025-04-23 01:12:57 +08:00
ee11f021eb refactor(slash-commands): 优化 /goto-floor 命令并添加高亮功能
- 重新组织消息加载和滚动逻辑,提高命令成功率
- 添加消息元素高亮功能,使用 flashHighlight 或临时 CSS 类
2025-04-23 01:04:52 +08:00
ceeaeea123 feat(slash-commands): 优化 /goto-floor 命令并加载所有消息
- 在执行 /goto-floor 命令前加载所有消息,确保目标元素存在
- 添加加载消息的步骤,解决因懒加载导致的元素找不到问题
2025-04-23 00:45:05 +08:00
6d0318eb36 refactor(slash-commands): 优化 /goto-floor 命令的代码格式和注释
- 修正 EDLint 标记错误
2025-04-23 00:05:35 +08:00
485d07b91f feat(slash-commands): 添加 /goto-floor 命令并实现消息高亮
- 新增 /goto-floor 命令,允许用户滚动到指定的消息索引
- 实现消息高亮功能,滚动到指定消息后进行突出显示
- 添加相关的 CSS 样式,确保高亮效果在不同浏览器中兼容
2025-04-22 23:51:40 +08:00
1c52099ed6 Add xAI as chat completion source 2025-04-10 22:59:10 +03:00
533aeffa36 Add opt-in for rawQuotes in SlashCommand registration
Closes #2739
Supersedes #2921
2025-03-27 23:22:38 +02:00
2a31f6af2d Remove Block Entropy references
Block Entropy shut down their service at the end of 2024.
2025-03-28 00:47:30 +09:00
6bb91dd0df fix group chid data attr 2025-03-22 23:41:29 -06:00
40f2eae3f3 Make it return empty array on cancel 2025-03-19 22:46:11 +01:00
8eee1d09a8 Add support for toggleable /buttons
Enhances the buttons slash command with toggleable multi-select capability
Introduces a 'multiple' parameter to enable selecting several options
Updates button styling with visual indicators for toggle states
Modifies return value to handle array of selections when multiple is enabled
2025-03-19 21:13:28 +01:00
af0939038b Fix undefined type references 2025-03-19 21:26:38 +02:00
73520b923f break some linting... 2025-03-19 20:01:31 +01:00
b88f9fb1ff break some linting 2025-03-19 19:59:17 +01:00
20cdcc37fc Fix fixable lints 2025-03-19 20:00:33 +02:00
cd0ca0363e Fix /inject id not being required, cause undefined 2025-03-13 20:35:39 +01:00
ddb77732f2 New context methods, added type parameters to message events 2025-03-12 21:25:16 +03:00
e7189a1260 Refactor hideMessageCallback and unhideMessageCallback to remove unnecessary console logs. Introduce onlyUniqueJson and sortIgnoreCaseAndAccents utility functions 2025-03-12 10:18:02 +02:00
1026e1f8e9 Add "name" argument to /hide and /unhide. Add default value for unnamed argument 2025-03-11 23:14:31 +02:00
1e6f8c6637 Better wording for /input arg descriptions 2025-03-10 17:41:18 +01:00
fc1c767280 onCancel and onSuccess handlers for /input command 2025-03-09 23:10:56 +01:00
fa03443fe7 Switch /input command definition to fromProps 2025-03-09 22:29:40 +01:00
45d8cac5a9 Fix /go command 2025-03-01 14:30:18 +02:00
582b710d3c Merge branch 'staging' into persona-improvements 2025-02-25 21:46:46 +01:00
4ab54016ad Utility func to sync all mes data to swipe 2025-02-25 17:00:41 +01:00
e0f3a22b80 Refactor: move persona slash commands 2025-02-22 21:45:35 +01:00
8bd4fd76ae Merge branch 'staging' into persona-improvements 2025-02-22 19:23:59 +01:00
d5bdf1cb90 Add settings.json-backed KV string storage
Fixes #3461, #3443
2025-02-11 20:17:48 +02:00
e5e931356b Remove forceEnum from char args in slash commands
- This precented people from actually using the characterKey inside the chatbox to go to a character
2025-02-02 03:43:20 +01:00
9c31c21d79 Use SlashCommandEnumValue 2025-02-02 00:47:12 +02:00
b35a746470 /member-get tweaks 2025-02-01 15:50:34 -06:00
a1abe14e02 add /member-get 2025-02-01 14:44:09 -06:00
ae9296f989 /peek→/member-peek (with /peek alias) 2025-02-01 14:43:08 -06:00
ea1d9e1d1a corrections to /member-* warnings 2025-02-01 14:41:02 -06:00
5257a45bde Allow removing group members while generating
Fixes #3389
2025-01-31 22:10:36 +02:00
9a03aac224 Allow sending empty messages with /sendas, /sys, etc. 2025-01-31 22:03:09 +02:00
cee7170763 Merge branch 'staging' into fnr 2025-01-31 21:09:33 +02:00
371208c24d add /replace command 2025-01-31 11:08:53 -06:00