Commit Graph

533 Commits

Author SHA1 Message Date
Cohee 1ef31b63ac No awaitless async. Add JSDocs. 2024-10-12 20:29:44 +03:00
Cohee 663f4ed798 CC: Actually check if can afford both the block and the header 2024-10-12 20:17:20 +03:00
Cohee a12051ee24 CC: Only fit entire example dialogue blocks at once 2024-10-12 12:56:52 +03:00
Cohee e93a2fbed0 Fix continue prefill not getting added. 2024-10-12 01:10:22 +03:00
Cohee 8e082e622b Chat Completion: switch to async token handling 2024-10-12 01:07:36 +03:00
Cohee b0d0f2111b Tool Calling: Reserve prompt budget for tool definitions. 2024-10-12 00:22:37 +03:00
Cohee 7162f9d562 Cohere: Swap message and tool plan in extractMessageFromData 2024-10-09 10:27:54 +03:00
Cohee c2935ba4a7 Migrate Cohere to /v2/chat
Closes #2916
2024-10-08 23:50:09 +03:00
Cohee 591f61d354 Don't split tool calls and tool results 2024-10-07 01:32:46 +03:00
Cohee c8ef4b02bc Add .git to jsconfig ignore 2024-10-06 19:12:28 +03:00
Cohee 6369882be3 Merge branch 'staging' into tool-calling 2024-10-05 20:31:28 +03:00
Cohee 3b4a455ef8 Split Custom OAI prompt post-processing modes 2024-10-05 16:09:39 +03:00
Cohee 68376f7dd0 Indicate no content on function result 2024-10-05 00:20:28 +03:00
Yokayo 17fb9815b3
Merge branch 'SillyTavern:staging' into staging 2024-10-04 23:13:12 +07:00
Cohee 689dbad2d1 Merge branch 'staging' into tool-calling 2024-10-04 14:28:47 +00:00
M0cho 38875fb940 Supports Gemini context length reduction. 2024-10-04 20:16:24 +09:00
M0cho d53baed5cf Supports Gemini 1.5-Flash-8b
for Product Ready version.
2024-10-04 20:16:12 +09:00
Cohee 576352817e Merge branch 'staging' into tool-calling 2024-10-03 22:36:02 +03:00
Cohee da9200c82e Skip adding tool messages as regular chats 2024-10-03 12:59:59 +00:00
Cohee 6706cce10d Groq: Add new models and multimodal captions 2024-10-03 08:41:45 +03:00
Cohee 0f8c1fa95d Save tool calls to visible chats. 2024-10-02 22:17:27 +03:00
Cohee e8b9720425 Budgeting fix 2024-10-02 01:56:27 +03:00
Cohee c94c06ed4d Implement function tool calling for OpenAI 2024-10-02 01:45:57 +03:00
Cohee 8006795897 New tool calling framework 2024-10-02 01:00:48 +03:00
Yokayo 7f9023d3c2 Work on tl 2024-10-01 21:25:20 +07:00
Cohee 7ac7398568 Remove debug log. Fix comment 2024-10-01 00:37:33 +03:00
Carsten Kragelund 4966fb65f7 fix: add assistant_prefill to request if people are using non prefill based continues 2024-09-28 22:46:23 +00:00
Carsten Kragelund aae934a849 fix: move prefill continuation handling to populateChatHistory 2024-09-28 22:37:16 +00:00
Cohee 6608f5dd95 Fix the use of stop strings for Gemini 2024-09-24 22:18:28 +03:00
Cohee 8c39e20ed9 Merge branch 'staging' into deprecate-cc-or-instruct 2024-09-24 21:19:03 +03:00
M0cho 2ee3eb7004 Support gemini-1.5-series-002 and new 8B exp model 2024-09-25 02:58:56 +09:00
Cohee 94977e71ff Merge OpenAI init functions 2024-09-22 12:29:32 +03:00
Cohee d3408c496f Change a log type for empty prompt messages 2024-09-21 16:23:59 +03:00
Cohee 82b0733d88 Allow setting role, position and depth for marker prompts 2024-09-18 21:51:10 +03:00
Cohee 60df924bec MistralAI: Add Pixtral to models and captioning 2024-09-17 21:44:25 +03:00
Cohee ca4d3c5ffe
Refactor instruct names behavior controls (#2837)
* Refactor instruct names behavior controls
Closes #2819

* Remove current persona from force names

* Don't add current user name in groups

* Revert to old text

* Add titles to names behavior

* Proper default for names_behavior
2024-09-16 00:46:03 +03:00
Cohee 44cc81fa73 Save models before emitting status change 2024-09-15 18:14:40 +03:00
Cohee 30af741c3e Deprecated forced instruct on OpenRouter for Chat Completion 2024-09-15 10:54:12 +03:00
Cohee eeee206887 Fix logit_bias comment 2024-09-13 21:03:04 +03:00
Cohee db2b356942 Remove stop for o1 2024-09-13 20:47:41 +03:00
Cohee 45cfc532b1 Redirect max_tokens to max_completion_tokens 2024-09-13 19:56:48 +03:00
Cohee 6d79cc015a Add OpenAI o1 2024-09-13 19:44:12 +03:00
Cohee be145c0bff Add missing return type 2024-09-08 17:24:42 +03:00
Cohee 8bb964515a Fix Gemini multimodal with JPG images
Fixes #2763
2024-09-08 10:48:28 +03:00
Cohee 6f9846a290 #2763 Add error handler to image token cost calculation 2024-09-08 02:16:54 +03:00
Cohee ac0c33eb76 Use CSS.supports to determine auto-fit validity 2024-09-05 20:00:45 +03:00
Cohee b9543054d8 Chat Completion: Increase unlocked context size 2024-08-30 21:47:26 +03:00
Cohee f155b83792 Cohere: new cmd-r models 2024-08-30 20:00:42 +03:00
Cohee 7aaabbd2bb Personas: fix duplication in Chat Completions 2024-08-28 22:44:26 +03:00
Cohee 07a6e1aa53
Merge pull request #2708 from Yokayo/staging
Update ru-ru translation
2024-08-28 21:23:45 +03:00