Aggiorna gli endpoint API per utilizzare l'URL di backend configurato
This commit is contained in:
@@ -126,7 +126,7 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`http://olympus-api-gateway-aks.olympusai.live/chatservice/get-history?conversationId=${this.conversationId}&lastN=100`, {
|
const response = await fetch(`https://olympus-api-gateway.olympus-wizardai.com/chatservice/get-history?conversationId=${this.conversationId}&lastN=100`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: { 'Content-Type': 'application/json', authorization: 'Bearer ' + this.$auth.token() }
|
headers: { 'Content-Type': 'application/json', authorization: 'Bearer ' + this.$auth.token() }
|
||||||
});
|
});
|
||||||
@@ -171,7 +171,7 @@ export default {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
this.waitingData = true;
|
this.waitingData = true;
|
||||||
const response = await fetch('http://olympus-api-gateway-aks.olympusai.live/chatservice/chat', {
|
const response = await fetch(import.meta.env.VITE_BACKEND_URL+'/chatservice/chat', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json', authorization: this.authorization },
|
headers: { 'Content-Type': 'application/json', authorization: this.authorization },
|
||||||
body: JSON.stringify(payload)
|
body: JSON.stringify(payload)
|
||||||
@@ -233,7 +233,7 @@ export default {
|
|||||||
|
|
||||||
async clearHistory() {
|
async clearHistory() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`http://olympus-api-gateway-aks.olympusai.live/chatservice/delete-history?conversationId=${this.conversationId}`, {
|
const response = await fetch( import.meta.env.VITE_BACKEND_URL+`/chatservice/delete-history?conversationId=${this.conversationId}`, {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: { 'Content-Type': 'application/json', authorization: this.authorization }
|
headers: { 'Content-Type': 'application/json', authorization: this.authorization }
|
||||||
});
|
});
|
||||||
@@ -249,7 +249,7 @@ export default {
|
|||||||
|
|
||||||
async loadContext() {
|
async loadContext() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(`http://olympus-api-gateway-aks.olympusai.live/chatservice/load-context-to-conversation?conversationId=${this.conversationId}&scenarioExecutionId=${this.scenarioExecutionId}`, {
|
const response = await fetch(import.meta.env.VITE_BACKEND_URL+`/chatservice/load-context-to-conversation?conversationId=${this.conversationId}&scenarioExecutionId=${this.scenarioExecutionId}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: { 'Content-Type': 'application/json', authorization: this.authorization }
|
headers: { 'Content-Type': 'application/json', authorization: this.authorization }
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user