Commit graph

963 commits

Author SHA1 Message Date
anovazzi1
f97586813c fixed validation 2023-04-28 23:03:13 -03:00
Gabriel Almeida
c3dffa3508 feat(chat_manager.py): add empty_history method to ChatHistory class
fix(chat_manager.py): empty chat history for a client when an exception is raised
fix(GenericNode): fix useEffect dependencies to avoid unnecessary re-renders
2023-04-28 20:31:53 -03:00
Gabriel Almeida
177ffb3ea5 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-28 20:10:57 -03:00
anovazzi1
8943de2575 check advanced on node too 2023-04-28 19:59:52 -03:00
anovazzi1
cde48131e3 fix bug on event prevent default 2023-04-28 17:59:23 -03:00
Gabriel Almeida
8e2342cf21 feat(loading.py): add validation for pydantic BaseModel subclasses
This commit adds validation for pydantic BaseModel subclasses in the
instantiate_class function. The function now checks if the class_object
is a subclass of BaseModel and if so, it validates the params passed to
it against the fields of the class_object.
2023-04-28 17:22:51 -03:00
Gabriel Almeida
357d13b1a9 refactor(validate.py): change wrapped_function from async to sync
fix(test_chains_template.py): set prompt show value to False for mid_journey_prompt_chain and time_travel_guide_chain tests
2023-04-28 15:45:53 -03:00
Gabriel Almeida
07863ea098 test(websocket.py): change websocket endpoint from /ws/test_client to /chat/test_client
test(websocket.py): update assertions to match new endpoint and response format
2023-04-28 15:44:18 -03:00
Gabriel Almeida
2bc1fdd32e prettier 2023-04-28 14:46:05 -03:00
Gabriel Almeida
e4b4cf19a2 refactor(GenericNode): remove commented out code and add comments to code
feat(GenericNode): add validation check for node changes by comparing length of nodes and edges array
2023-04-28 14:43:27 -03:00
Gabriel Almeida
d52e7700c0 fix(nodes.py): set prompt field as not required and show it if no prompt is provided 2023-04-28 14:42:38 -03:00
Gabriel Almeida
35b4b50b8f Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-28 09:58:10 -03:00
anovazzi1
e92cf1110a change chat shortcut to ctrl+k and handled websocket errors 2023-04-27 23:23:51 -03:00
Gabriel Almeida
6e2b4b01dc style(dropdownComponent): add dark mode support to dropdown component options and background color 2023-04-27 20:52:53 -03:00
Gabriel Almeida
45c04befe7 refactor(Makefile): rename run_backend target to backend and add install_backend target
feat(Makefile): add frontend target to install and run frontend app using npm
2023-04-27 17:24:25 -03:00
Gabriel Almeida
917cc51148 Refactor alertDropDown components
Adjust singleAlertComponent's formatting for better readability and add a custom hook to handle click outside functionality in alertDropdown component.
2023-04-27 17:01:51 -03:00
Gabriel Almeida
cdfaed1999 style(dropdownComponent): add dark mode support to dropdown button background color 2023-04-27 15:20:19 -03:00
Gabriel Almeida
7a951dcc59 refactor(cache/manager.py): extract add method to reduce code duplication
feat(cache/manager.py): add support for custom extensions when adding objects to cache
2023-04-27 12:11:02 -03:00
Gabriel Almeida
1e8f342037 feat(frontend): add support for environment variable NODE_ENV in start script
feat(frontend): change proxy to backend container name
feat(chatModal): add support for environment variable NODE_ENV in WebSocket connection
2023-04-27 10:16:28 -03:00
Gabriel Almeida
cdc6d2994a Refactor WebSocket connection to new port number 7860 in Makefile and add file upload support to ChatModal component. 2023-04-27 09:53:31 -03:00
Gabriel Almeida
01c23d6d8b style(chatMessage): add full width to chat message container 2023-04-26 10:04:25 -03:00
Gabriel Almeida
553ba98337 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-26 09:05:29 -03:00
Gabriel Almeida
9cf286d4d3 refactor(base.py): remove print statement from ToolCreator class 2023-04-26 09:02:57 -03:00
anovazzi1
4f7630fa05 think bug fixed 2023-04-26 01:37:56 -03:00
Gabriel Luiz Freitas Almeida
63e10f8786
refactor(validate.py): extract build_graph function to langflow.inter… (#204) 2023-04-26 01:29:09 -03:00
Gabriel Luiz Freitas Almeida
5dbca85512
Merge branch 'chat_and_cache' into 186-endpoints-for-node-validation-and-debugging 2023-04-26 01:28:43 -03:00
Gabriel Almeida
1b8f4ce2bd Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-26 01:05:43 -03:00
anovazzi1
ad7683e7ad new human chat color 2023-04-26 01:04:50 -03:00
anovazzi1
2d98de9368 new human chat color 2023-04-26 01:00:41 -03:00
anovazzi1
f7989aca85 avoiding error 1005 message 2023-04-26 00:59:41 -03:00
Gabriel Almeida
4292b95175 refactor(chat): change file.type to file.data_type in ChatMessage component and ChatMessageType type definition 2023-04-26 00:59:35 -03:00
Gabriel Almeida
0945dbe582 style(chat_manager.py, chatMessage/index.tsx): fix indentation and formatting issues 2023-04-26 00:55:44 -03:00
Gabriel Almeida
0ef4572917 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-26 00:51:19 -03:00
anovazzi1
38ec55db77 new file name 2023-04-26 00:44:24 -03:00
anovazzi1
395edf5d17 create message to display while chat is empty 2023-04-26 00:41:48 -03:00
anovazzi1
7ae1351e41 key on map to avoid error on console 2023-04-26 00:14:18 -03:00
Gabriel Almeida
54351d5d28 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-26 00:03:04 -03:00
anovazzi1
c3499db353 change lock logic 2023-04-26 00:02:02 -03:00
Gabriel Almeida
df0897a96e Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-25 23:53:17 -03:00
anovazzi1
4c287b54ce set file extension to .png 2023-04-25 23:47:55 -03:00
Gabriel Almeida
e58a2d2104 Merge remote-tracking branch 'origin/websocket' into chat_and_cache 2023-04-25 23:43:16 -03:00
anovazzi1
bb18f128ce added basic error handling 2023-04-25 23:36:25 -03:00
Gabriel Almeida
5894f32ab0 refactor(chat_manager.py): close connection in finally block to prevent memory leaks and improve code readability 2023-04-25 23:17:45 -03:00
Gabriel Almeida
aacfa378f3 refactor(langflow): add verbose and fix_memory_inputs to langchain_object
Add verbose and fix_memory_inputs to langchain_object in load_flow_from_json function. The verbose attribute is set to True if it exists in the langchain_object. The fix_memory_inputs function is called on the langchain_object.
2023-04-25 23:12:44 -03:00
anovazzi1
e453a22361 Merge remote-tracking branch 'origin/chat_and_cache' into websocket 2023-04-25 23:09:29 -03:00
anovazzi1
bc4abd50c4 using unique id as flow id 2023-04-25 23:09:19 -03:00
Gabriel Almeida
ed2a2c7db8 feat(chat_manager.py): send error message to client when an exception occurs 2023-04-25 23:07:05 -03:00
anovazzi1
5d94b5cd9c fixed lockChat logic 2023-04-25 23:01:52 -03:00
anovazzi1
56d97e7c7f file download working 2023-04-25 22:47:52 -03:00
anovazzi1
41a0bc0588 Merge remote-tracking branch 'origin/chat_and_cache' into websocket 2023-04-25 22:23:42 -03:00