Commit graph

11,521 commits

Author SHA1 Message Date
ogabrielluiz
c3e2ad670e refactor: Remove PromptComponent and update langflow components to use Prompt field type 2024-06-11 20:49:34 -03:00
ogabrielluiz
c40188f6b6 refactor: Update VertexAIEmbeddingsComponent to use Embeddings field type
Update the VertexAIEmbeddingsComponent to use the `Embeddings` field type instead of importing it from `langchain_google_vertexai`. This ensures compatibility with the latest version of the langflow library and improves code readability.
2024-06-11 20:40:52 -03:00
Lucas Oliveira
5400f61447 Merge branch 'dev' into two_edges 2024-06-11 18:46:02 -03:00
Lucas Oliveira
79e52d49b1 Changed info buttons to have Help cursor 2024-06-11 18:44:24 -03:00
Lucas Oliveira
1b23952026 Removed status when not built, adjusted Loading to have a Size 2024-06-11 18:42:34 -03:00
Lucas Oliveira
fde9a77035 Merge branch 'two_edges_merge' into two_edges 2024-06-11 18:19:59 -03:00
Lucas Oliveira
ce0f49aed5 Changed poetry.lock 2024-06-11 18:18:56 -03:00
Lucas Oliveira
850de6b952 Merge branch 'dev' into two_edges_merge 2024-06-11 18:11:13 -03:00
ogabrielluiz
8b622446a1 refactor: Update langflow components to use Prompt field type
Update the langflow components to use the `Prompt` field type instead of the deprecated `type` attribute. This ensures compatibility with the latest version of the langflow library and improves code readability.
2024-06-11 17:34:03 -03:00
ogabrielluiz
0c8e973ccf refactor: Update SwitchOutputView to accept outputName prop
Update the SwitchOutputView component to accept the outputName prop, allowing for dynamic rendering of different output views based on the selected output name.
2024-06-11 17:27:58 -03:00
ogabrielluiz
3976298881 feat: Refactor ChatInput and ChatOutput to store message response
Refactor the ChatInput and ChatOutput components to store the message response in the session. This ensures that the message is properly stored and can be accessed later.
2024-06-11 17:27:21 -03:00
Gabriel Luiz Freitas Almeida
6716a90c0f
Update .gitignore and refactor ChatInput and ChatOutput (#2140)
This pull request includes two changes. First, the `.gitignore` file is
updated to include `*.db-shm` and `*.db-wal` files. Second, the
`ChatInput` and `ChatOutput` classes are refactored to include a new
`return_message` parameter. This parameter allows the caller to specify
whether they want the message to be returned as a `Message` object or
just the message text. These changes improve the functionality and
maintainability of the code.
2024-06-11 12:04:32 -07:00
ogabrielluiz
d92cc3bb50 chore: Update test_endpoints.py to use "result" instead of "text" in assertions 2024-06-11 16:03:51 -03:00
ogabrielluiz
f7b1040562 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 15:55:14 -03:00
ogabrielluiz
4e6abc732b Merge remote-tracking branch 'origin/dev' into fix_chat 2024-06-11 15:51:18 -03:00
ogabrielluiz
e0cdd17811 Refactor ChatInput and ChatOutput to include return_message parameter 2024-06-11 15:50:07 -03:00
ogabrielluiz
15faceceb0 chore: Update .gitignore to include *.db-shm and *.db-wal files 2024-06-11 15:49:58 -03:00
cristhianzl
6c081d04d3 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-11 15:47:04 -03:00
cristhianzl
742f93e229 💡 (index.tsx): remove trailing commas for cleaner code formatting
 (tests): remove unnecessary keyboard press and fix formatting in chatInputOutputUser.spec.ts
 (tests): update selector for copy button in curl_api_generation.spec.ts
 (tests): fix formatting in intComponent.spec.ts

 (tests): update end-to-end tests for improved stability and clarity

- Remove redundant "Close" button clicks in logs and textInputOutput tests
- Add "more-options-modal" click in promptModalComponent and saveComponents tests
- Replace role-based selectors with test ID selectors for "Copy Code" button
- Update API key section text in userSettings test for consistency
2024-06-11 15:46:59 -03:00
ogabrielluiz
c8ebcd1b03 update projects 2024-06-11 15:44:19 -03:00
ogabrielluiz
cda65c07de 🐛 (chat.py): Fix issue with logs assignment in build_vertex function
🐛 (schemas.py): Fix issue with logs field type in ResultDataResponse class
🐛 (Prompt.py): Fix issue with kwargs assignment in build_prompt method
🐛 (component.py): Fix issue with results and arguments assignment in Component class
🐛 (schema.py): Fix issue with logs field type in ResultData class

📝 (types.py): Add ResultData import and build_logs_from_artifacts function for better logging and message extraction
📝 (setup.py): Set DEFAULT_PROMPT_INTUT_TYPES for missing template keys to provide default input types
📝 (loading.py): Update build_component function to return artifacts along with build_results
📝 (schema.py): Add build_logs_from_artifacts function to generate logs from artifacts
📝 (utils.py): Update log_transaction function to use source instead of vertex and handle source result for outputs
📝 (prompt.py): Define DEFAULT_PROMPT_INTUT_TYPES constant and use it for missing template input types
2024-06-11 15:44:05 -03:00
Rodrigo
b7a63154c3 chore: Update ChatInput.py to include Text import and modify return type 2024-06-11 15:27:57 -03:00
Lucas Oliveira
5dd0df05a0 Changed status circle to icon 2024-06-11 15:16:26 -03:00
Lucas Oliveira
4f47bf11cb Formatted flows 2024-06-11 15:11:45 -03:00
Lucas Oliveira
20f4620860 Changed .gitignore 2024-06-11 15:11:27 -03:00
ogabrielluiz
7fad3353e1 refactor: Update load_from_db flag to true for openai_api_key field 2024-06-11 13:49:47 -03:00
Gabriel Luiz Freitas Almeida
aa94e42e0d
Release -> Output Inspection, Session Management, General Bug Fixing and UI Improvements (#2104) 2024-06-11 09:08:24 -07:00
ogabrielluiz
901e22de66 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 13:05:48 -03:00
ogabrielluiz
60f446cb76 Refactor memory components to use updated Record schema 2024-06-11 13:05:48 -03:00
ogabrielluiz
3a3055479f Fix streaming 2024-06-11 13:05:48 -03:00
Lucas Oliveira
8e50859222 Fixed package lock and added cursor pointer to status icon 2024-06-11 13:03:00 -03:00
ogabrielluiz
2b2812f4df Merge remote-tracking branch 'origin/dev' into cz/mergeAll 2024-06-11 12:49:47 -03:00
Lucas Oliveira
4cf5f3ae0f Merge remote-tracking branch 'origin/dev' into cz/mergeAll 2024-06-11 12:46:51 -03:00
ming
ad23cac117
Improve SQLite performance (#2111)
* tune sqlite upon connection

* catch operational error

* use wal for journal_mode for faster performance
2024-06-11 08:44:48 -07:00
ogabrielluiz
89faa251ef chore: Update package versions in pyproject.toml and poetry.lock 2024-06-11 12:43:44 -03:00
Lucas Oliveira
d7fd36fade
Extensive UI Enhancements, Bug Fixes, and Code Refactoring (#2129)
## Pull Request Description

This pull request includes a comprehensive set of changes aimed at
improving the user interface, fixing bugs, and refactoring the code for
better maintainability and performance. The modifications encompass a
wide range of components and functionalities within the application.

## Changes Made

### Node Interaction
- Changed click to double-click when editing node information.
- Added node play on hover of entire node again.

### Modal Improvements
- Removed function that prevents `esc` on `codeAreaModal`.
- Changed `Name` to `Field Name` on `editNodeModal`.
- Refactored `BaseModal` and fixed overflow issues in various modals.
- Fixed buttons not submitting on `baseModal`.
- Fixed submit action on `baseModal` and state issue on Edit Node Modal.
- Fixed modal size and removed default size definition.
- Added input component to DOM with an event listener.

### UI Enhancements
- Fixed border being cut on Node Settings dropdown component.
- Fixed scrollbar colors and dropdown color when not global.
- Changed loading color and images to lighter ones, added animation to
grid.
- Fixed header profile image being shrunk and header alignment.
- Fixed padding and margin issues on buttons.
- Added gap to button and grabbing cursor when grabbing node.
- Added Status button and adjusted positioning of Node Header elements.
- Removed hover background from outline badge.

### Bug Fixes
- Fixed unused `console.log` statements and reset grid `console.log`.
- Fixed bug on `dictAreaModal` where state is kept without saving.
- Fixed dictionary component not being full width.
- Fixed scrollIntoView not always working.
- Fixed update shortcut not working.
- Fixed accordion not being disabled with no data on output.
- Fixed Memories badge overflow.
- Disabled output if it’s not valid.
- Removed pagination when it’s on the left side and fixed bug on opening
pagination.
- Fixed global variables not setting on EditNodeModal.
- Fixed Add New Variable button not working at the dropdown.

### Refactoring
- Updated `ChromaComponent` to show status.
- Refactored advanced options in `ChatComponent`, `URLComponent`, and
other components.
- Improved handling of `message.text` in `chat.py` to prevent errors.

### New Features
- Added image preloading hook and suspense image component.
- Added `EmbedComponent` and `PromptComponent` to langflow components.
- Added `Message` and `StoreMessage` components.

### Code Cleanup
- Removed unused classes and scale on hover.
- Added type definitions to global variables.
- Increased route history slice size for better navigation.

### Merge Details
- Merged multiple branches including `origin/cz/mergeAll` into
`fix/minor_ui_adjustments`.

### Contributors
- @lucaseduoli
- @rodrigosnader
- @Cristhianzl

---

These changes are crucial for improving the overall functionality and
user experience of the application. Please review and merge the pull
request. Thank you!
2024-06-11 12:42:45 -03:00
Lucas Oliveira
23e25cad7a Merge remote-tracking branch 'origin/cz/mergeAll' into fix/minor_ui_adjustments 2024-06-11 12:39:08 -03:00
ogabrielluiz
1a03c0d0c7 refactor: Migrate base classes to outputs in FrontendNode model 2024-06-11 12:36:36 -03:00
Lucas Oliveira
af56de33e9 Fixed padding on buttons 2024-06-11 12:35:52 -03:00
Lucas Oliveira
c13800de5f Added grabbing cursor when grabbing node 2024-06-11 12:33:15 -03:00
Lucas Oliveira
9cde3ef1ee Added Status button and fixed positioning of Node Header elements 2024-06-11 12:32:58 -03:00
Lucas Oliveira
b2c09fc82c Removed hover bg from outline badge 2024-06-11 12:32:18 -03:00
Lucas Oliveira
a7f7530354 Formatting 2024-06-11 12:32:03 -03:00
Lucas Oliveira
15c28110c4 Added nocopy nowheel nopan classes on buttons 2024-06-11 12:31:54 -03:00
cristhianzl
c45c5da7e3 fix actions mains 2024-06-11 12:06:50 -03:00
cristhianzl
20724b8f50 fix actions mains 2024-06-11 12:06:05 -03:00
italojohnny
b7beeedccd update cassio dependency to be optional with extras 2024-06-11 11:50:17 -03:00
ogabrielluiz
2dddfe4aea refactor: Update import statements in CassandraMessageReader and CassandraMessageWriter 2024-06-11 10:15:02 -03:00
ogabrielluiz
0014d8e50a Merge remote-tracking branch 'origin/dev' into two_edges 2024-06-11 09:52:41 -03:00
YAMON.IO
11b5aad3bd
add PythonCodeStructuredTool (#1747)
* Create PythonStructuredTool

This draft involves receiving two 'Code' types as inputs and creating a structured tool.

* Delete src/backend/base/langflow/components/experimental/PythonStructuredTool

* Create PythonCodeStructuredTool.py
2024-06-11 05:42:49 -07:00