mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 17:10:45 +01:00
[chore] Run code format
This commit is contained in:
parent
ed8e379e54
commit
34b1fa2cff
@ -637,7 +637,7 @@ together.post('/generate', jsonParser, async (request, response) => {
|
|||||||
const choice = data?.data?.[0];
|
const choice = data?.data?.[0];
|
||||||
let b64_json = choice.b64_json;
|
let b64_json = choice.b64_json;
|
||||||
|
|
||||||
if(! b64_json) {
|
if (!b64_json) {
|
||||||
const buffer = await (await fetch(choice.url)).buffer();
|
const buffer = await (await fetch(choice.url)).buffer();
|
||||||
b64_json = buffer.toString('base64');
|
b64_json = buffer.toString('base64');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user