mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix poe connectivity get >> post
This commit is contained in:
@@ -484,7 +484,7 @@ class Client {
|
||||
const botNameKeyName = 'chatOfBotHandle'
|
||||
const defaultBotKeyName = 'defaultBotNickname'
|
||||
//console.log('this.session.get(this.home_url)')
|
||||
const r = await request_with_retries(() => this.session.get(this.home_url));
|
||||
const r = await request_with_retries(() => this.session.post(this.home_url));
|
||||
const jsonRegex = /<script id="__NEXT_DATA__" type="application\/json">(.+?)<\/script>/;
|
||||
const jsonText = jsonRegex.exec(r.data)[1];
|
||||
const nextData = JSON.parse(jsonText);
|
||||
|
Reference in New Issue
Block a user