1083 Commits

Author SHA1 Message Date
sirius422
f32938981c fix: adjust safetySettings handling for legacy and experimental Gemini models
- gemini-1.5-flash-8b-exp-0827
- gemini-1.5-flash-8b-exp-0924
- gemini-pro
- gemini-1.0-pro
2025-02-07 16:35:44 +08:00
Cohee
1acee3d4c9 Gemini: Add sysprompt for gemini 2.0 pro/flash 2025-02-06 21:46:17 +02:00
sirius422
d35bd3b073 feat: update Gemini safety settings
- Set threshold to OFF for most models, except for HARM_CATEGORY_CIVIC_INTEGRITY.
- Handle specific cases for a few models.
2025-02-06 04:59:30 +08:00
sirius422
b074f9fa89 feat: update Gemini models
- Add new Gemini models (2025/02/05)
2025-02-06 04:50:54 +08:00
Cohee
363d8a4121 Merge branch 'staging' into ipv6_auto 2025-02-04 22:45:46 +02:00
Cohee
dd2154c19b Refactor reasoning effort handling for OpenAI models in chat completions 2025-02-04 10:50:58 +02:00
Cohee
dade4eafa5 Add reasoning_effort to Custom.
Update inline image quality style
2025-02-04 10:45:51 +02:00
Wolfsblvt
d0ebac37c1 Make the backend actually send reasoning_effort 2025-02-03 23:58:01 +01:00
Cohee
bfd57b66ef [wip] OpenRouter: Add model providers endpoint 2025-02-02 23:30:44 +02:00
Cohee
0c8a11e28b Further loglevel updates
1. Fix missed endpoints
2. Exclude console.log from loglevel
2025-02-02 15:40:37 +02:00
Eradev
a5399b6614 Sparser use of .error 2025-02-02 03:47:04 -05:00
Eradev
055a6527fc PR fixes 2025-02-02 03:10:32 -05:00
Eradev
842b59605b Merge branch 'staging' into staging-3071-v2 2025-02-02 02:44:21 -05:00
Cohee
72e1dcb3f9 Add categories parameter to /searxng endpoint 2025-02-01 03:32:10 +02:00
Cohee
a2a6afb731 Tavily: allow requesting images 2025-02-01 02:23:10 +02:00
Cohee
e59114c1c5 Another crack at o3 2025-01-31 23:14:41 +02:00
Cohee
6180210170 Future-proofing 2025-01-31 22:48:04 +02:00
Cohee
2b98e96784 Don't send max_tokens to o3 2025-01-31 22:47:00 +02:00
Cohee
7d937b36da Merge branch 'staging' into text-completion-include-reasoning 2025-01-31 20:33:02 +02:00
Cohee
26030f6ee4 Fix comfy request abort 2025-01-31 16:15:07 +00:00
pcpthm
9de142b9ad Fix MakerSuit show reasoning 2025-01-31 22:23:59 +09:00
pcpthm
753a99faf9 Support reasoning for OpenRouter text completion 2025-01-31 21:41:56 +09:00
Eradev
552a418bae Merge branch 'staging' into staging-3071-v2 2025-01-28 10:49:53 -05:00
Cohee
a5a8f6057b Merge branch 'staging' into woo-yeah 2025-01-27 20:56:04 +02:00
Cohee
999da4945a Fix error log 2025-01-26 20:29:04 +02:00
Cohee
65e32f720d Use default avatar if imported image is corrupted 2025-01-26 19:58:37 +02:00
Cohee
a42337ad0a Use 'localhost' as a fallback for hostname 2025-01-26 16:50:59 +02:00
Cohee
30426d21e7 Merge branch 'staging' into woo-yeah 2025-01-26 01:57:36 +02:00
Cohee
9aac5a22f1 Defer middleware HTML file reads 2025-01-26 01:46:30 +02:00
Cohee
96143177ce Fix logit bias for DeepSeek on OpenRouter 2025-01-26 01:42:08 +02:00
Cohee
c9a1a3eb94
Merge pull request #3351 from SillyTavern/csrf-sync
Replace CSRF middleware
2025-01-25 23:23:43 +02:00
Cohee
44ad69ceca
Merge pull request #3342 from Spappz/staging
Allow customisation of the 403 page
2025-01-25 23:00:23 +02:00
Spappz
6099ffece1
No exceptions on missing error webpages
- Create a `safeReadFileSync()` function in `src/utils.js` to wrap around `fs.readFileSync()`
- Migrate error-webpage loads to use `safeReadFileSync()`, with default values of an empty string
- Move the 404 error middleware to explicitly only be called *after* extensions are registered
2025-01-25 20:29:31 +00:00
Cohee
5ff402aabf Replace CSRF middleware
Closes #3349
2025-01-25 16:56:11 +02:00
Spappz
538d66191e
add 401 error page for basicAuth mode
Most modern browsers don't actually show users 401 responses, but it doesn't hurt to have it in there anyway ¯\_(ツ)_/¯
2025-01-25 03:40:47 +00:00
Spappz
928487985d
defer 403 HTML to file 2025-01-25 03:38:52 +00:00
Cohee
9a2968d1eb Merge branch 'staging' into woo-yeah 2025-01-24 23:50:15 +02:00
Cohee
0937f44f39
Validate avatar_url field with a middleware (#3314)
* Validate avatar_url field with a middleware

* Fix validating wrong endpoint
2025-01-24 23:47:32 +02:00
Spappz
075368b5ae
Ensure Handlebars template is only compiled once 2025-01-24 19:56:19 +00:00
Spappz
90459116e3
woohoo 2025-01-24 03:39:05 +00:00
Cohee
bbd85fc823
Merge pull request #3315 from SillyTavern/extensions-config
config.yaml: Group extension settings into one section
2025-01-24 02:54:48 +02:00
Cohee
03c98fb55a OpenRouter: Support reasoning blocks 2025-01-24 00:56:44 +02:00
Cohee
7f9b139ae0 Merge branch 'staging' into woo-yeah 2025-01-24 00:13:06 +02:00
Cohee
823b9db6f6 Gemini: Fix requesting thought blocks 2025-01-23 22:41:39 +02:00
subzero5544
a503f58d0c
Adding reverse proxy support to DeepSeek chat completion (#3328)
* added reverse proxy settings to deepseek chat completion

* Update chat-completions.js

* Update chat-completions.js

* Update chat-completions.js

* Update chat-completions.js

* Update chat-completions.js

* Update chat-completions.js

* Unify API key requirement

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-01-23 09:02:44 +02:00
Cohee
afae8d02be The THONKening 2025-01-23 02:52:52 +02:00
sirius422
11882827c7 Add new Gemini thinking model and its alias, specify context size and vision support 2025-01-22 18:37:43 +08:00
Cohee
d7bb92be54 deepseek reasoner
Closes #3322
2025-01-20 23:31:40 +02:00
Cohee
4d18ddba6d config.yaml: Group extension settings into one section 2025-01-17 20:18:27 +02:00
Cohee
0441a8725f WebSearch: Add KoboldCpp search endpoint. 2025-01-15 21:58:49 +02:00