Lucas Oliveira
6f42514fd5
Fixed Dark Mode on Import screen
2023-05-11 19:31:37 -03:00
Lucas Oliveira
9496728eb5
Fixed Python API code
2023-05-11 18:58:07 -03:00
Gabriel Almeida
d55d209dc3
formatting
2023-05-11 14:33:52 -03:00
Lucas Oliveira
2589b1f468
Fixed dark mode classes on FileInput
2023-05-11 14:01:59 -03:00
Lucas Oliveira
6030b47915
Removed JS from API modal
2023-05-11 14:00:29 -03:00
Lucas Oliveira
97c60eaa5d
Merge branch 'dev' into frontChanges
2023-05-11 13:59:12 -03:00
Lucas Oliveira
2b5e3c9b46
Streaming, Chat Markdown, and CacheManager ( #282 )
...
Chat now has Markdown helping see code blocks and images.
Now models stream their messages if possible (VectorStores don't allow
async for now in LangChain, I think)
We added a cache_manager object. This allows you to add images (and soon
other things too) to the chat. You can also recall the object saved from
another PythonFunction node.
Closes #241
Closes #162
2023-05-11 13:51:47 -03:00
Gabriel Almeida
7fbce31a50
refactor(chatModal): improve code readability and formatting
2023-05-11 11:28:12 -03:00
Gabriel Almeida
2e16618e47
refactor(chat_manager.py): use dict.pop() method to remove client_id from active_connections dictionary
2023-05-11 11:15:51 -03:00
Gabriel Almeida
b16084d927
fix(chat_manager.py): limit the length of the exception message to 120 characters
2023-05-11 10:18:07 -03:00
Gabriel Almeida
df178e10e2
Merge branch 'streaming' of https://github.com/logspace-ai/langflow into streaming
2023-05-11 09:31:32 -03:00
Gabriel Almeida
03e9edd8b7
Merge branch 'dev' of https://github.com/logspace-ai/langflow into streaming
2023-05-11 09:31:28 -03:00
Lucas Oliveira
23f349a2d8
Fixed typo in class at API modal
2023-05-11 00:04:23 -03:00
Lucas Oliveira
d01db97cd3
Changed Chat modal to work with dark mode
2023-05-11 00:00:17 -03:00
Lucas Oliveira
2961fc25a7
ApiModal dark mode fixed
2023-05-10 23:56:20 -03:00
Gabriel Almeida
92aadaf934
Merge branch 'dev' of https://github.com/logspace-ai/langflow into streaming
2023-05-10 23:22:15 -03:00
Gabriel Almeida
fd5f5784b8
refactor(api): remove unused imports in chat_manager.py and endpoints.py
2023-05-10 22:50:43 -03:00
Gabriel Almeida
e50e9b187c
style(chat.py): format imports using PEP8 style guide
2023-05-10 22:49:01 -03:00
Gabriel Almeida
4046a7b1e5
refactor(agents/custom.py): create CustomAgentExecutor abstract class and make all agents inherit from it
...
fix(agents/custom.py): fix import error for NotEnoughElementsException
refactor(run.py): remove unused import statement for loading module
2023-05-10 22:48:49 -03:00
Gabriel Almeida
fc20775fdb
Merge branch 'streaming' of https://github.com/logspace-ai/langflow into streaming
2023-05-10 22:44:02 -03:00
Gabriel Almeida
374a6c8f46
style(fileComponent): add dark mode support to file download button and tooltip background color and text color
2023-05-10 22:41:28 -03:00
anovazzi1
84d0c28c2f
fixed padding
2023-05-10 22:38:20 -03:00
Gabriel Almeida
2ffc8b266f
feat(nodes.py): add optional memory field to MidJourneyPromptChainNode class constructor
2023-05-10 22:31:16 -03:00
Gabriel Almeida
1f4f734dc3
changed padding button, and chat
2023-05-10 22:31:10 -03:00
anovazzi1
9a63329dc7
fix spacing
2023-05-10 22:09:57 -03:00
anovazzi1
b1e5e4fd19
formated all code inside the src folder
2023-05-10 21:18:29 -03:00
anovazzi1
32972b0f8a
added error handling
2023-05-10 20:30:14 -03:00
anovazzi1
6431392576
implemented image setup
2023-05-10 19:44:41 -03:00
anovazzi1
ad1a1e683f
Copy Paste, Undo and Redo implemented ( #253 )
...
## Description
This Pull Request implements four new features in the langflow Workflow
project:
- Copy and Paste feature for multiple nodes
- Undo and Redo feature for node actions
### Copy and Paste Feature
The Copy and Paste feature allows users to select multiple nodes by
holding down the `Shift` key and dragging the mouse over the nodes, copy
them using the `Ctrl+C` keyboard shortcut, and paste them into a
different location within the workflow by leaving the mouse pointer at
the desired location and pressing `Ctrl+V`.
### Undo and Redo Feature
The Undo and Redo feature allows users to undo and redo actions on the
workflow nodes using the `Ctrl+Z` and `Ctrl+Shift+Z` keyboard shortcuts,
respectively. When a user undoes an action, the state of the nodes in
the workflow is reverted to the previous state. Similarly, when a user
redoes an action, the state of the nodes is restored to the previous
state that was undone.
## How to Test
To test these features, follow the below steps:
1. Run the `langflow` application.
2. Add a few nodes to the workflow.
3. Select one or more nodes by holding down the `Shift` key and dragging
the mouse over the nodes.
4. Press `Ctrl+C` to copy the selected nodes.
5. Leave the mouse pointer at a different location in the workflow and
press `Ctrl+V` to paste the copied nodes.
6. Use the `Ctrl+Z` and `Ctrl+Shift+Z` keyboard shortcuts to undo and
redo actions on the nodes in the workflow.
2023-05-10 18:47:00 -03:00
Lucas Oliveira
5d6d50d537
api modal fixed with code viewer
2023-05-10 15:49:57 -03:00
Gabriel Almeida
7fde19b36a
fix(chat_manager.py): handle case where client is not in active_connections dictionary and remove duplicate code in finally block
2023-05-10 12:17:52 -03:00
Gabriel Almeida
6b6ac17167
fix(chat_manager.py): close websocket connection with status code 1011 and error message on exception
2023-05-10 12:09:14 -03:00
Gabriel Almeida
55d18426fc
fix(chat_manager.py): fix chat history message to add response instead of request message
2023-05-10 11:57:29 -03:00
Gabriel Almeida
f83160cf21
refactor(langflow): organize imports in multiple files
...
This commit organizes imports in multiple files to follow PEP8 guidelines
and improve code readability. No functionality changes were made.
2023-05-10 11:42:36 -03:00
Gabriel Almeida
7c1c513106
refactor(loading.py): refactor instantiate_class function to improve readability and maintainability
2023-05-10 11:41:34 -03:00
Gabriel Almeida
31062f2a8c
refactor(run.py): remove unused process_graph function
...
refactor(test_graph.py): update get_result_and_steps to get_result_and_thought function name
2023-05-10 11:31:06 -03:00
Gabriel Almeida
222bb119d3
refactor(chat_manager.py): remove unused code and method call in ChatManager constructor
...
refactor(chat_manager.py): remove unused method call in ChatManager.handle_message()
2023-05-10 11:30:46 -03:00
Gabriel Almeida
fc007e4349
Merge remote-tracking branch 'origin/dev' into streaming
2023-05-10 11:19:04 -03:00
Gabriel Almeida
81f6382b40
Merge remote-tracking branch 'origin/chatUpdate' into streaming
2023-05-10 11:01:08 -03:00
dataman
67db4ba69c
change line endings to linux. the other way was not wokring consistantly
2023-05-10 10:34:17 +00:00
dataman
858d84e2a2
change line endings to linux.
2023-05-10 10:34:17 +00:00
anovazzi1
eb4ebc4b3d
first version image
2023-05-09 22:29:31 -03:00
anovazzi1
08dacd7042
handle files on end
2023-05-09 20:07:48 -03:00
anovazzi1
5c2c9b943b
fancy code block implemmented
2023-05-09 19:33:44 -03:00
anovazzi1
4ca064ebdc
fixed duplicated message
2023-05-09 18:02:43 -03:00
Lucas Oliveira
279d86a0e1
API modal implemented
2023-05-09 17:59:03 -03:00
anovazzi1
bb5dae166f
added markdown github extension and latex sintax to the user message
2023-05-09 17:31:56 -03:00
anovazzi1
aafb14add3
added markdown github extension and latex sintax to the chat
2023-05-09 17:31:30 -03:00
anovazzi1
702834731d
Merge branch 'streaming' into chatUpdate
2023-05-09 17:12:44 -03:00
Lucas Oliveira
b8c95fb7ec
Get data from Validate Nodes and display it on Tooltip
2023-05-09 16:56:05 -03:00