Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app-backend/config/workflow-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"id": "chat_completion_0",
"inMegaservice": false,
"name": "chat_completion",
"params": {},
"params": {
"ui_choice": "chat"
},
"version": 1
},
"chat_input_0": {
Expand Down
5 changes: 1 addition & 4 deletions app-frontend/react/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ VITE_BACKEND_SERVICE_URL=
VITE_DATAPREP_SERVICE_URL=
VITE_CHAT_HISTORY_SERVICE_URL=
VITE_UI_SELECTION=

VITE_PROMPT_SERVICE_GET_ENDPOINT=
VITE_PROMPT_SERVICE_CREATE_ENDPOINT=
VITE_PROMPT_SERVICE_DELETE_ENDPOINT=
VITE_DEFAULT_UI_TYPE=
5 changes: 1 addition & 4 deletions app-frontend/react/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ VITE_BACKEND_SERVICE_URL=APP_BACKEND_SERVICE_URL
VITE_DATAPREP_SERVICE_URL=APP_DATAPREP_SERVICE_URL
VITE_CHAT_HISTORY_SERVICE_URL=APP_CHAT_HISTORY_SERVICE_URL
VITE_UI_SELECTION=APP_UI_SELECTION

VITE_PROMPT_SERVICE_GET_ENDPOINT=APP_PROMPT_SERVICE_GET_ENDPOINT
VITE_PROMPT_SERVICE_CREATE_ENDPOINT=APP_PROMPT_SERVICE_CREATE_ENDPOINT
VITE_PROMPT_SERVICE_DELETE_ENDPOINT=APP_PROMPT_SERVICE_DELETE_ENDPOINT
VITE_DEFAULT_UI_TYPE=APP_DEFAULT_UI_TYPE
2 changes: 1 addition & 1 deletion app-frontend/react/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

for i in $(env | grep APP_) #// Make sure to use the prefix MY_APP_ if you have any other prefix in env.production file variable name replace it with MY_APP_
for i in $(env | grep APP_) #// Make sure to use the prefix APP_ if you have any other prefix in env.production file variable name replace it with APP_
do
key=$(echo $i | cut -d '=' -f 1)
value=$(echo $i | cut -d '=' -f 2-)
Expand Down
4 changes: 1 addition & 3 deletions app-frontend/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
getSupportedModels,
getSupportedUseCases,
} from "@redux/Conversation/ConversationSlice";
import { getPrompts } from "@redux/Prompt/PromptSlice";

import MainLayout from "@layouts/Main/MainLayout";
import MinimalLayout from "@layouts/Minimal/MinimalLayout";
Expand Down Expand Up @@ -60,7 +59,6 @@ const App = () => {
if (isAuthenticated) {
dispatch(getSupportedUseCases());
dispatch(getSupportedModels());
dispatch(getPrompts());
}
};

Expand All @@ -74,7 +72,7 @@ const App = () => {
// }
dispatch(getAllConversations({ user: name}));

console.log ("on reload")
// console.log ("on reload")
}, [useCase, name, isAuthenticated]);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ const ChatAssistant: React.FC<ChatMessageProps> = ({
} else {
return (
<Box ref={heightCheck}>
<ChatMarkdown content={assistantMessage} />
<ChatMarkdown
content={assistantMessage}
isStreaming={!!onGoingResult}
/>
</Box>
);
}
Expand Down
Loading
Loading