Skip to content

Commit

Permalink
Fixes #150: Productivity Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
hussaino03 committed Dec 14, 2024
1 parent f4c8196 commit 2d396b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/AI/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ const Chat = ({ isOpen, onClose, isAuthenticated }) => {
.slice(-2);

try {
const response = await fetch(`${process.env.REACT_APP_PROD || 'http://localhost:3001'}/api/ai/chat`, {
const API_BASE_URL = process.env.REACT_APP_PROD || 'http://localhost:3001/api';
const response = await fetch(`${API_BASE_URL}/ai/chat`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 2d396b0

Please sign in to comment.