Skip to content

Commit

Permalink
Merge pull request #71 from cylqqqcyl/cyl-dev
Browse files Browse the repository at this point in the history
Cyl dev fix local host usage
  • Loading branch information
cylqqqcyl authored Nov 15, 2023
2 parents 0eeae2a + c2f2b71 commit 73a0168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/frontend/src/sections/chat/conversation-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ConversationCard = ({ messages, setMessages, selectedCharacter }) =

// 向后端发送请求
try {
const response = await fetch('http://localhost:5000/chat', { // Adjust the protocol and port as necessary
const response = await fetch(`${process.env.NEXT_PUBLIC_BACKEND_URL}/chat`, { // Adjust the protocol and port as necessary
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -58,7 +58,7 @@ export const ConversationCard = ({ messages, setMessages, selectedCharacter }) =
if (responseData) {
const response_tts = response
if (response_tts.ok) {
const audioResponse = await fetch(`http://localhost:5000/audio/${responseData.audioURL}`,
const audioResponse = await fetch(`${process.env.NEXT_PUBLIC_BACKEND_URL}/audio/${responseData.audioURL}`,
{
method: 'GET',
});
Expand Down

0 comments on commit 73a0168

Please sign in to comment.