bc1d745209
Rewrite getstatus_openai using fetch
2023-08-31 22:46:13 +03:00
deeedad19e
Make jsdoc/type-checker happy Pt 3 ( #1070 )
...
* png-chunks-extract.extract has no create_date
* `new Buffer.from` is not a thing
* handle failed character read
* stop lying about your return value
* what we get for mixing booleans and strings
* localeCompare makes more sense and fixes types
* uhh wtf, there is no callback in readFileSync
* no subtracting Dates, only Numbers (timestamps)
* handle if no file in request
* changing types makes typechecker mad
* handle false or undefined character read
* default param does not exist
* can't have same property assigned twice
* json5.parse expects a string, not buffer
* handle invalid thumbnail type
* handle invalid thumbnail type case
* ignore bad axios typing
* fix ambiguous typing
* types is incorrect? no .destroy(). use type guard
* include intended error handling of refactor
* Make API urls const
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com >
2023-08-31 19:44:58 +03:00
c19eb3146f
Force set create date string
2023-08-31 19:30:27 +03:00
4e553cf6ab
Server: Allow appending of additional headers for local backends
...
This is a useful feature for those who want to utilize APIs with
proxy middleware for adding extra features or security. For cloud
API safety and abiding by rate limits, this feature only applies to
local backends such as ooba or kobold.
Signed-off-by: kingbri <bdashore3@proton.me >
2023-08-31 00:15:07 -04:00
218cfb43d8
Fix gallery files caching, filter by mime type. Use fetch instead of Jquery Ajax
2023-08-31 00:55:17 +03:00
194278d171
Merge branch 'staging' into feature/exorcism
2023-08-31 00:42:34 +03:00
7cb896ddd7
Fix first run initialization
2023-08-31 00:40:03 +03:00
7f99ae5705
Revert unnecessary string cast
2023-08-31 00:21:29 +03:00
326c7d8841
input not an arr, it is an arr or string or other
2023-08-30 13:28:08 -07:00
9dfe42a7c3
convert to async and fix types
2023-08-30 13:28:08 -07:00
2e3ddd16d5
fix ambiguous args for typechecker
2023-08-30 13:28:08 -07:00
77c9744878
make more readable & make types happy
2023-08-30 13:28:08 -07:00
49aff85472
handle bad read of raw data
2023-08-30 13:28:08 -07:00
c1b76b5f48
resolve can only return one thing at a time
2023-08-30 13:28:08 -07:00
f7576750fc
handle undefined X-Streaming-URL
2023-08-30 13:28:08 -07:00
691e9ee754
this default param does not exist
2023-08-30 13:28:08 -07:00
ab9594fe62
handle missing user agent case
2023-08-30 13:28:08 -07:00
8211e67ed7
generateToken requires req to set cookie
2023-08-30 13:28:08 -07:00
aa901883d2
node v18 type-checker hates this, ignore it
2023-08-30 13:28:08 -07:00
cd8027aeea
fixes 7 errs. see yargs typescript docs. test plz
2023-08-30 13:28:08 -07:00
3feeaaa09f
listen requires a number, URL
port is string wtf
2023-08-30 13:28:08 -07:00
113ea1d0ec
JSON.parse wants a string
2023-08-30 13:28:08 -07:00
86c0974a6e
More image support
2023-08-30 15:33:39 -04:00
220d19d3ec
Remove useless assignments
2023-08-30 22:09:09 +03:00
f5e52eab05
Specify read encoding
2023-08-30 22:04:11 +03:00
ce46e1a4ca
Replace restClient in getstatus_novelai
2023-08-30 21:58:46 +03:00
a757532c3e
Fix local fetch import for Kobold
2023-08-30 21:46:09 +03:00
02f7c9ab64
Merge branch 'staging' into cleanup-imports
2023-08-30 21:19:14 +03:00
27b6fe1f76
Fix sendFile usage
2023-08-30 21:14:53 +03:00
52dbb916c0
Specify file read encoding where possible
2023-08-30 20:57:19 +03:00
938e244987
Change file buffer read handling
2023-08-30 20:55:00 +03:00
8b38015fab
stop polluting my global namespace
2023-08-30 10:28:58 -07:00
271a429a62
default param value does not exist
2023-08-30 10:28:58 -07:00
f3f9efb163
check the docs, there is no such option sirs
2023-08-30 10:28:58 -07:00
398544407d
type checker no trust functions as type guards
2023-08-30 10:28:58 -07:00
b648d9bd87
JSON.parse wants a string
2023-08-30 10:28:58 -07:00
79e6d4c297
outdated local ai_horde library, bad
2023-08-30 10:28:58 -07:00
94c6b453c0
workaround: pkg does not exist on type Process
2023-08-30 10:28:58 -07:00
11cef1b234
type checker wants a string
2023-08-30 10:28:58 -07:00
6ca678e137
sanitize only accepts strings
2023-08-30 10:28:58 -07:00
e1df933368
plz no pollute global namespace
2023-08-30 10:28:58 -07:00
b91bc21d60
fixes readableStream fuckery, needs testing
2023-08-30 10:28:58 -07:00
baac38f888
types demands we handle null case
2023-08-30 10:28:58 -07:00
3422b3e963
inline function immediately called lolwtf
2023-08-30 10:28:58 -07:00
4e78c3ec79
should be a string according to types
2023-08-30 10:28:58 -07:00
2928c79446
simple-git needs to get their shit together
2023-08-30 10:28:58 -07:00
20f807c5c9
async functions return promises silly
2023-08-30 10:28:58 -07:00
37e20f6fc5
type-guard vs possible null
2023-08-30 10:28:58 -07:00
6bd77bac7a
checker thinks this could be undefined, handle it
2023-08-30 10:28:57 -07:00
c703b0b25e
'Buffer' is not assignable to param 'string'
2023-08-30 10:28:57 -07:00