moving port to .env

This commit is contained in:
Raven Scott
2023-04-07 21:18:40 +02:00
parent 4b3cda8eff
commit 8c192acd7d
4 changed files with 5 additions and 3 deletions

View File

@ -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
});