Commit Graph

44 Commits

Author SHA1 Message Date
ade45b6cd1 Allow prompt post-processing for all sources. Add 'single user msg' processing (#4009)
* Allow prompt post-processing for all sources. Add 'single user msg' PPP type

* Fix copilot comments

* Fix typo in element id

* Remove redundant conditions

* Lint fix

* Add link to PPP docs
2025-05-22 20:36:22 +03:00
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
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
1c52099ed6 Add xAI as chat completion source 2025-04-10 22:59:10 +03:00
de0e65fe13 Enable tool calling for ai21 2025-03-08 17:25:37 +02:00
c9277cec28 Gemini: Add tool calling 2025-03-06 23:52:35 +02:00
c3dd3e246e DeepSeek: Add tool calling for -chat model 2025-02-11 00:04:40 +02:00
7e7b3e30c4 Tool Calling: Implement stealth tool defintions (#3192)
* Tool Calling: Implement stealth tool defintions

* Move isStealth check up

* Always stop generation on stealth tool calls

* Image Generation: use stealth flag for tool registration

* Update stealth property description to clarify no follow-up generation will be performed

* Revert "Image Generation: use stealth flag for tool registration"

This reverts commit 8d13445c0b.
2024-12-19 21:17:47 +02:00
9c43999e4b Fix /tools-unregister 2024-12-06 17:15:40 +02:00
649c3911eb Add shouldRegister arg to /tools-register 2024-11-03 19:11:07 +02:00
3387fe4bd6 unvendor: Replace DOMPurify 2024-10-16 23:11:13 +03:00
42f8b86b11 Tool Calling: stringify errors instead of silently failing 2024-10-09 22:39:55 +03:00
3fd7ca90ed Tool Calling: Don't try to parse if tool calling is not supported 2024-10-09 10:49:02 +00:00
15efdb6609 Merge pull request #2962 from SillyTavern/cohere-v2
Migrate Cohere to /v2/chat
2024-10-09 10:29:04 +03:00
c49138dfea Tool Calling: Make formatMessage async 2024-10-09 03:56:24 +03:00
bc0f5bf4ce Tool Calling: add shouldRegister function to tool defintion 2024-10-09 03:53:32 +03:00
c2935ba4a7 Migrate Cohere to /v2/chat
Closes #2916
2024-10-08 23:50:09 +03:00
7db85e7ed8 Limit tool calls recursion 2024-10-07 00:22:27 +03:00
89bad21881 Allow tool registration on swipes 2024-10-06 22:25:23 +03:00
6b022e783d Fix tool call reuse between Claude and OAI 2024-10-06 22:22:19 +03:00
927c2418e0 Group tool calls in the result 2024-10-06 20:19:58 +03:00
96862be6b0 Fix tools-list 2024-10-06 13:01:14 +03:00
077ba8b03d Add slash commands for tools management 2024-10-06 12:49:08 +03:00
7dea59f026 Format tool result if JSON 2024-10-05 20:54:37 +03:00
47e3cf82e0 Don't call tools on stopped streams. Emit events 2024-10-05 19:08:57 +03:00
6a304e8884 Fix generation looping 2024-10-05 00:20:06 +03:00
01fc5113d7 Fix ghost messages 2024-10-04 23:13:56 +03:00
d5d8d6c876 Remove warning log for unregister 2024-10-04 13:05:03 +00:00
db04fff3df Claude: Streamed tool calls parser 2024-10-04 11:31:15 +00:00
ca1f6a56c3 Merge branch 'tool-calling' of https://github.com/SillyTavern/SillyTavern into tool-calling 2024-10-04 13:39:13 +03:00
0cab91e0f8 Add Claude streamed tool parser 2024-10-04 13:39:08 +03:00
4a2989718c ESLint and JSDoc fixes 2024-10-04 10:34:17 +00:00
c3c10a629e Claude: new prompt converter + non-streaming tools 2024-10-04 03:41:25 +03:00
559f1b81f7 Remove tool calling for Cohere v1 2024-10-04 02:11:46 +03:00
01f03dbf50 Support MistralAI streaming tool calls 2024-10-04 01:51:41 +03:00
5cf64a2613 Update tool registration 2024-10-04 00:39:28 +03:00
6558b10675 Show an error when all tools fail 2024-10-04 00:11:36 +03:00
1e076a3e43 Prettify displayed message 2024-10-02 23:32:29 +03:00
2b7c03f3b0 Nicely format message for tool calls 2024-10-02 23:13:11 +03:00
0f8c1fa95d Save tool calls to visible chats. 2024-10-02 22:17:27 +03:00
63724a2b38 eslint update 2024-10-02 01:54:47 +03:00
68c87f7e7a Fix code scanning alert no. 231: Prototype-polluting function
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-10-02 01:53:03 +03:00
c94c06ed4d Implement function tool calling for OpenAI 2024-10-02 01:45:57 +03:00
8006795897 New tool calling framework 2024-10-02 01:00:48 +03:00