Skip to content

Commit

Permalink
fix: Correct API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sonngdev committed Jan 19, 2023
1 parent 5c38f4f commit af1610d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ function App() {
setIsProcessing(true);

abortRef.current = new AbortController();
const endpoint = IS_LOCAL_SETUP_REQUIRED
? `${settings.host}:${settings.port}/chatgpt/messages`
const host = IS_LOCAL_SETUP_REQUIRED
? `${settings.host}:${settings.port}`
: 'https://sonng-chatgpt.uksouth.cloudapp.azure.com';
fetch(endpoint, {
fetch(`${host}/chatgpt/messages`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit af1610d

Please sign in to comment.