Skip to content

Commit

Permalink
server_url
Browse files Browse the repository at this point in the history
  • Loading branch information
scenaristeur committed Dec 17, 2023
1 parent 126c16d commit 22e684c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ChatBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default {
return {
currentMessage: '',
messages: [],
// server_url: 'http://localhost:5678/v1/chat/completions',
//server_url: 'https://api.openai.com/v1/chat/completions',
server_url: 'http://localhost:3000/chatbot'
};
},
created() {
Expand All @@ -47,7 +50,7 @@ export default {
content: message,
});
await axios
.post('http://localhost:3000/chatbot', {
.post(this.server_url, {
messages: this.messages
})
.then((response) => {
Expand Down

0 comments on commit 22e684c

Please sign in to comment.