Modern Horde domain
This commit is contained in:
parent
9b969b283e
commit
54660e2d66
|
@ -65,7 +65,7 @@ router.post('/text-workers', jsonParser, async (request, response) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
const fetchResult = await fetch('https://horde.koboldai.net/api/v2/workers?type=text', {
|
const fetchResult = await fetch('https://aihorde.net/api/v2/workers?type=text', {
|
||||||
headers: {
|
headers: {
|
||||||
'Client-Agent': agent,
|
'Client-Agent': agent,
|
||||||
},
|
},
|
||||||
|
@ -88,7 +88,7 @@ router.post('/text-models', jsonParser, async (request, response) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
const fetchResult = await fetch('https://horde.koboldai.net/api/v2/status/models?type=text', {
|
const fetchResult = await fetch('https://aihorde.net/api/v2/status/models?type=text', {
|
||||||
headers: {
|
headers: {
|
||||||
'Client-Agent': agent,
|
'Client-Agent': agent,
|
||||||
},
|
},
|
||||||
|
@ -106,7 +106,7 @@ router.post('/text-models', jsonParser, async (request, response) => {
|
||||||
router.post('/status', jsonParser, async (_, response) => {
|
router.post('/status', jsonParser, async (_, response) => {
|
||||||
try {
|
try {
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
const fetchResult = await fetch('https://horde.koboldai.net/api/v2/status/heartbeat', {
|
const fetchResult = await fetch('https://aihorde.net/api/v2/status/heartbeat', {
|
||||||
headers: {
|
headers: {
|
||||||
'Client-Agent': agent,
|
'Client-Agent': agent,
|
||||||
},
|
},
|
||||||
|
@ -123,7 +123,7 @@ router.post('/cancel-task', jsonParser, async (request, response) => {
|
||||||
try {
|
try {
|
||||||
const taskId = request.body.taskId;
|
const taskId = request.body.taskId;
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
const fetchResult = await fetch(`https://horde.koboldai.net/api/v2/generate/text/status/${taskId}`, {
|
const fetchResult = await fetch(`https://aihorde.net/api/v2/generate/text/status/${taskId}`, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
'Client-Agent': agent,
|
'Client-Agent': agent,
|
||||||
|
@ -143,7 +143,7 @@ router.post('/task-status', jsonParser, async (request, response) => {
|
||||||
try {
|
try {
|
||||||
const taskId = request.body.taskId;
|
const taskId = request.body.taskId;
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
const fetchResult = await fetch(`https://horde.koboldai.net/api/v2/generate/text/status/${taskId}`, {
|
const fetchResult = await fetch(`https://aihorde.net/api/v2/generate/text/status/${taskId}`, {
|
||||||
headers: {
|
headers: {
|
||||||
'Client-Agent': agent,
|
'Client-Agent': agent,
|
||||||
},
|
},
|
||||||
|
@ -160,7 +160,7 @@ router.post('/task-status', jsonParser, async (request, response) => {
|
||||||
|
|
||||||
router.post('/generate-text', jsonParser, async (request, response) => {
|
router.post('/generate-text', jsonParser, async (request, response) => {
|
||||||
const apiKey = readSecret(request.user.directories, SECRET_KEYS.HORDE) || ANONYMOUS_KEY;
|
const apiKey = readSecret(request.user.directories, SECRET_KEYS.HORDE) || ANONYMOUS_KEY;
|
||||||
const url = 'https://horde.koboldai.net/api/v2/generate/text/async';
|
const url = 'https://aihorde.net/api/v2/generate/text/async';
|
||||||
const agent = await getClientAgent();
|
const agent = await getClientAgent();
|
||||||
|
|
||||||
console.log(request.body);
|
console.log(request.body);
|
||||||
|
|
Loading…
Reference in New Issue