@@ -4,8 +4,8 @@ export const DEFAULT_CONFIG = {
4
4
WELCOME_MESSAGE_LOGGED_OUT : 'To ask questions, please log in.' ,
5
5
WELCOME_MESSAGE_LOGIN_TRANSITION : 'Welcome! You are now logged in. What can I help you with?' ,
6
6
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/ ' ,
9
9
10
10
// Netlify function URL - this should point to the Netlify functions endpoint for ticket submission
11
11
// NOT the Q&A API endpoint
@@ -34,14 +34,14 @@ export const DEFAULT_CONFIG = {
34
34
35
35
// Runtime functions to get endpoints (handles env vars that may not be available at build time)
36
36
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
39
39
: DEFAULT_CONFIG . API_ENDPOINT ;
40
40
} ;
41
41
42
42
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
45
45
: DEFAULT_CONFIG . RATING_ENDPOINT ;
46
46
} ;
47
47
0 commit comments