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
96 changes: 67 additions & 29 deletions webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"@radix-ui/react-tabs": "^1.1.2",
"@radix-ui/react-toast": "^1.2.4",
"@react-email/components": "^0.0.21",
"@react-email/render": "^1.0.5",
"@rjsf/core": "^5.15.1",
"@rjsf/utils": "^5.15.1",
"@rjsf/validator-ajv8": "^5.15.1",
Expand Down
24 changes: 21 additions & 3 deletions webapp/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions webapp/src/components/ChatAppForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export default function ChatAppForm({
? app?.chatAppConfig?.conversationStarters.map(x => ({ name: x }))
: [{ name: '' }]
);
console.log(conversationStarters);
const [agentName, setAgentName] = useState(initialAgent?.name || '');
const [role, setRole] = useState(initialAgent?.role || '');
const [goal, setGoal] = useState(initialAgent?.goal || '');
Expand Down Expand Up @@ -317,7 +316,6 @@ export default function ChatAppForm({
};

async function createDatasourceCallback(createdDatasource) {
console.log('createDatasourceCallback', createdDatasource);
(await fetchFormData) && fetchFormData();
setDatasourceState(oldDatasources => {
const newOption = { label: createdDatasource.name, value: createdDatasource.datasourceId };
Expand All @@ -327,14 +325,12 @@ export default function ChatAppForm({
}

async function modelCallback(addedModelId) {
console.log('addedModelId', addedModelId);
(await fetchFormData) && fetchFormData();
setModelId(addedModelId);
setModalOpen(false);
}

async function toolCallback(addedToolId, addedTool) {
console.log('addedToolId', addedToolId);
(await fetchFormData) && fetchFormData();
if ((addedTool?.type as ToolType) == ToolType.RAG_TOOL) {
setDatasourceState(oldDatasourcesState =>
Expand Down
Loading