Programmer-RD-AI
commited on
Commit
·
8952ed0
1
Parent(s):
1482bae
Change Base Url
Browse files- src/components/chat/Sidebar/Sidebar.tsx +2 -2
- src/store.ts +2 -1
src/components/chat/Sidebar/Sidebar.tsx
CHANGED
|
@@ -170,8 +170,8 @@ const Endpoint = () => {
|
|
| 170 |
<p className="text-xs font-medium text-muted">
|
| 171 |
{isMounted
|
| 172 |
? truncateText(selectedEndpoint, 21) ||
|
| 173 |
-
|
| 174 |
-
: '
|
| 175 |
</p>
|
| 176 |
<div
|
| 177 |
className={`size-2 shrink-0 rounded-full ${getStatusColor(isEndpointActive)}`}
|
|
|
|
| 170 |
<p className="text-xs font-medium text-muted">
|
| 171 |
{isMounted
|
| 172 |
? truncateText(selectedEndpoint, 21) ||
|
| 173 |
+
ENDPOINT_PLACEHOLDER
|
| 174 |
+
: 'https://sifa-classification-agentic-rag-ai.onrender.com'}
|
| 175 |
</p>
|
| 176 |
<div
|
| 177 |
className={`size-2 shrink-0 rounded-full ${getStatusColor(isEndpointActive)}`}
|
src/store.ts
CHANGED
|
@@ -79,7 +79,8 @@ export const useStore = create<Store>()(
|
|
| 79 |
typeof messages === 'function' ? messages(state.messages) : messages
|
| 80 |
})),
|
| 81 |
chatInputRef: { current: null },
|
| 82 |
-
selectedEndpoint:
|
|
|
|
| 83 |
setSelectedEndpoint: (selectedEndpoint) =>
|
| 84 |
set(() => ({ selectedEndpoint })),
|
| 85 |
agents: [],
|
|
|
|
| 79 |
typeof messages === 'function' ? messages(state.messages) : messages
|
| 80 |
})),
|
| 81 |
chatInputRef: { current: null },
|
| 82 |
+
selectedEndpoint:
|
| 83 |
+
'https://sifa-classification-agentic-rag-ai.onrender.com',
|
| 84 |
setSelectedEndpoint: (selectedEndpoint) =>
|
| 85 |
set(() => ({ selectedEndpoint })),
|
| 86 |
agents: [],
|