Skip to content

Commit 22b0f20

Browse files
committed
chore: update AI endpoint constants
1 parent f6d236a commit 22b0f20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/config/constants.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export const DEFAULT_CONFIG = {
44
WELCOME_MESSAGE_LOGGED_OUT: 'To ask questions, please log in.',
55
WELCOME_MESSAGE_LOGIN_TRANSITION: 'Welcome! You are now logged in. What can I help you with?',
66
WELCOME_MESSAGE_LOGOUT_TRANSITION: 'You have been logged out.',
7-
API_ENDPOINT: 'https://access-ai.ccs.uky.edu:543/api/query',
8-
RATING_ENDPOINT: 'https://access-ai.ccs.uky.edu:545/api/query/rating',
7+
API_ENDPOINT: 'https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/',
8+
RATING_ENDPOINT: 'https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/',
99

1010
// Netlify function URL - this should point to the Netlify functions endpoint for ticket submission
1111
// NOT the Q&A API endpoint
@@ -34,14 +34,14 @@ export const DEFAULT_CONFIG = {
3434

3535
// Runtime functions to get endpoints (handles env vars that may not be available at build time)
3636
export const getApiEndpoint = () => {
37-
return (typeof process !== 'undefined' && process.env?.REACT_APP_API_ENDPOINT)
38-
? process.env.REACT_APP_API_ENDPOINT
37+
return (typeof process !== 'undefined' && process.env?.REACT_APP_API_ENDPOINT)
38+
? process.env.REACT_APP_API_ENDPOINT
3939
: DEFAULT_CONFIG.API_ENDPOINT;
4040
};
4141

4242
export const getRatingEndpoint = () => {
43-
return (typeof process !== 'undefined' && process.env?.REACT_APP_RATING_ENDPOINT)
44-
? process.env.REACT_APP_RATING_ENDPOINT
43+
return (typeof process !== 'undefined' && process.env?.REACT_APP_RATING_ENDPOINT)
44+
? process.env.REACT_APP_RATING_ENDPOINT
4545
: DEFAULT_CONFIG.RATING_ENDPOINT;
4646
};
4747

0 commit comments

Comments
 (0)