forked from snxraven/rai-serge-discord-bot
moving port to .env
This commit is contained in:
@ -47,7 +47,7 @@ module.exports = {
|
||||
'accept': 'text',
|
||||
};
|
||||
console.log(session);
|
||||
const response = await axios.post(`http://${process.env.INTERNAL_IP}:8008/api/chat/${sessionID}/question?prompt=${prompt}`, {
|
||||
const response = await axios.post(`http://${process.env.INTERNAL_IP}:${process.env.SERGE_PORT}/api/chat/${sessionID}/question?prompt=${prompt}`, {
|
||||
headers
|
||||
});
|
||||
|
||||
|
@ -3,7 +3,7 @@ var unirest = require('unirest');
|
||||
const jsonfile = require('jsonfile')
|
||||
|
||||
// Start session defaults:
|
||||
var apiUrl = `http://${process.env.INTERNAL_IP}:8008/api/chat/`;
|
||||
var apiUrl = `http://${process.env.INTERNAL_IP}:${process.env.SERGE_PORT}/api/chat/`;
|
||||
|
||||
var model = 'gpt4all';
|
||||
var temperature = 0.1;
|
||||
|
@ -31,7 +31,7 @@ module.exports = {
|
||||
'accept': 'text/event-stream',
|
||||
};
|
||||
|
||||
const response = await axios.get(`http://${process.env.INTERNAL_IP}:8008/api/chat/${sessionID}`, {
|
||||
const response = await axios.get(`http://${process.env.INTERNAL_IP}:${process.env.SERGE_PORT}/api/chat/${sessionID}`, {
|
||||
headers
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user