Cohee
28bad6479c
Use human-readable memory cache capacity in config
2025-03-05 00:45:34 +02:00
Cohee
3d813e4ef6
Move shallow toggle to config.yaml
2025-03-04 23:32:42 +02:00
bmen25124
7d568dd4e0
Generic generate methods ( #3566 )
...
* sendOpenAIRequest/getTextGenGenerationData methods are improved, now it can use custom API, instead of active ones
* Added missing model param
* Removed unnecessary variable
* active_oai_settings -> settings
* settings -> textgenerationwebui_settings
* Better presetToSettings names, simpler settings name in getTextGenGenerationData,
* Removed unused jailbreak_system
* Reverted most core changes, new custom-request.js file
* Forced stream to false, removed duplicate method, exported settingsToUpdate
* Rewrite typedefs to define props one by one
* Added extractData param for simplicity
* Fixed typehints
* Fixed typehints (again)
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-03 10:30:20 +02:00
Cohee
1d995fb92d
Rewrite to only consider Docker
2025-03-01 20:22:33 +02:00
Cohee
58fe54954a
Update whitelist entry in config.yaml to use gateway.docker.internal
2025-02-28 00:21:35 +02:00
Cohee
0bc4396427
Resolve hostnames from whitelist
2025-02-27 23:14:57 +02:00
Cohee
e7fcd0072b
Refactor server startup
2025-02-26 14:46:54 +00:00
Cohee
a73dfa7586
Merge branch 'staging' into immutable-config
2025-02-22 20:15:13 +02:00
Cohee
a2ecb81378
Move minLogLevel to logging section
2025-02-22 13:58:08 +02:00
Cohee
b12cd9fe05
Merge branch 'staging' into feature/access-log-middleware
2025-02-22 13:49:36 +02:00
Cohee
30f97e0e64
Merge branch 'release' into staging
2025-02-22 12:41:18 +02:00
Cohee
938c8a9a36
Add /default do-not-edit notice
2025-02-22 12:41:09 +02:00
KevinSun
db500188d8
feat(middleware): add separate access log middleware with config option
2025-02-21 20:32:23 +08:00
Cohee
eb31d7baa2
Merge branch 'staging' into immutable-config
2025-02-20 21:54:41 +02:00
KevinSun
3f5b63bba0
Feature: Add configurable X-Real-IP header support for rate limiting ( #3504 )
...
* fix: correct client IP detection behind reverse proxy
* Revert "fix: correct client IP detection behind reverse proxy"
This reverts commit 72075062402eadb32c9e349df9bc92bfe4546ce3.
* feat: support X-Real-IP header for reverse proxy setups
* feat: add option to use x-real-ip for rate limiting behind reverse proxy
* docs: update rate limiting configuration comments for X-Real-IP usage
* refactor: extract getIpAddress function to reduce code duplication
* revert(whitelist): rate limit settings shouldn't affect whitelist
2025-02-20 21:11:44 +02:00
Cohee
7ea2c5f8cf
Move cookie secret to data root. Make config.yaml immutable
2025-02-20 20:16:44 +02:00
Cohee
362470da18
Plugins: Add auto-update functionality ( #3487 )
...
* Plugins: Add auto-update functionality
* Check if directory is a git repo
* Display message if any plugins were loaded
2025-02-16 20:55:53 +02:00
Cohee
96d6a6df07
Merge pull request #3478 from Dakraid/feature/set-listen-ip
...
Feature: Allow user to configure an address to listen to
2025-02-15 00:02:15 +02:00
Kristan Schlikow
b029ae98dc
Fix default config for IPv6
2025-02-14 20:06:45 +01:00
Kristan Schlikow
f5bfbce0ad
Group listenAddress for config
2025-02-14 20:04:23 +01:00
Kristan Schlikow
2445b6d9dc
Split up listen address configuration between IPv4 and IPv6
2025-02-14 19:58:59 +01:00
Kristan Schlikow
ad8f0f564f
Use IP Regex package, update default
2025-02-14 19:06:07 +01:00
Cohee
c47d997a2d
Merge pull request #3475 from SillyTavern/ollama-batch
...
Ollama: Add num_batch config value
2025-02-14 12:34:13 +02:00
Kristan Schlikow
83f74a5d22
Allow user to configure an address to listen to
2025-02-13 23:43:10 +01:00
Cohee
09aaa9181c
Good night 'Black Magic Time'
2025-02-13 23:34:20 +02:00
Cohee
dd7391caaf
Ollama: Add num_batch config value
2025-02-13 20:17:33 +02:00
Cohee
d9bb5e6b1f
Revert old default values
2025-02-04 22:46:24 +02:00
Cohee
363d8a4121
Merge branch 'staging' into ipv6_auto
2025-02-04 22:45:46 +02:00
Eradev
552a418bae
Merge branch 'staging' into staging-3071-v2
2025-01-28 10:49:53 -05:00
Cohee
c9a1a3eb94
Merge pull request #3351 from SillyTavern/csrf-sync
...
Replace CSRF middleware
2025-01-25 23:23:43 +02:00
Cohee
5ff402aabf
Replace CSRF middleware
...
Closes #3349
2025-01-25 16:56:11 +02:00
Spappz
e07faea874
rework createDefaultFiles()
...
Reorganised copy-able `default/` files as a sparse copy of the production file-tree. This should save the `defaultItems` (formerly `files`) array from getting unwieldy.
2025-01-25 03:45:16 +00:00
Spappz
a5dc505e61
add 404 error-handling to server
...
This is all that seems necessary according to Express? Admittedly my first time using it.
https://expressjs.com/en/starter/faq.html#how-do-i-handle-404-responses
2025-01-25 03:42:04 +00: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
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
Karl-Johan Alm
2b00cdce7b
system same as user
2025-01-22 17:07:23 +09:00
Karl-Johan Alm
636e79c438
fixes
2025-01-22 16:03:32 +09:00
Karl-Johan Alm
7877e6601d
add presets for DeepSeek R1 models
2025-01-22 13:13:41 +09:00
Cohee
4d18ddba6d
config.yaml: Group extension settings into one section
2025-01-17 20:18:27 +02:00
Cohee
8acba00655
Upscale default monocolor BGs
2025-01-15 21:02:10 +02:00
Eradev
1f9fa74786
Rewritten minLogLevel feature
2025-01-15 10:02:32 -05:00
Cohee
9db9c5c9ca
Reorganize backup configs
2025-01-05 16:03:52 +02:00
Cohee
8623d1198d
Add thumbnail dimensions to config ( #3262 )
...
* Add thumbnail dimensions to config
* Fix default value for thumbnails.enabled
* Update comment for thumbnail recreation instructions in config.yaml
* Lint config values
* Verify config size > 0
* More config lint
2025-01-05 00:38:50 +02:00
BPplays
ca283c0da6
fixed backward compat, and check if auto before getting addrs
2024-12-26 10:29:04 -08:00
BPplays
dc3b18de94
fixed typo
2024-12-25 16:47:08 -08:00
BPplays
b0cb982978
added automatic ipv6 ipv4 detection
2024-12-25 16:46:16 -08:00
Cohee
7f94cb4bee
CC: Simplify default wrappers for personality and scenario
2024-12-22 23:36:58 +02:00
Cohee
f0b124221c
Merge pull request #3216 from HiroseKoichi/release
...
Remove brackets around `{{name}}` in `ChatML-Names` and `Llama-3-Instruct-Names`
2024-12-22 23:32:08 +02:00