Commit graph

11,439 commits

Author SHA1 Message Date
Lucas Oliveira
876eae7f32 Fixed if/else that is not on useEffect 2024-06-13 17:01:17 -03:00
cristhianzl
e81870fd73 merge fix 2024-06-13 15:23:15 -03:00
italojohnny
5f14aece1a bugfix 2024-06-13 12:36:18 -03:00
ogabrielluiz
a6c9fe8467 Update memory example params 2024-06-13 12:23:46 -03:00
ogabrielluiz
abb0f81843 chore: Remove pretty-quick from package.json and package-lock.json 2024-06-13 12:21:19 -03:00
ogabrielluiz
383ac6e1af Update memory example 2024-06-13 12:19:56 -03:00
ogabrielluiz
627c094907 chore: Remove simple-git-hooks from package.json 2024-06-13 12:19:39 -03:00
ogabrielluiz
90798a91ea Format code 2024-06-13 12:13:27 -03:00
ogabrielluiz
045cb38cd3 Update Memory Example 2024-06-13 12:12:24 -03:00
ogabrielluiz
6dbc2c76e4 Update projects 2024-06-13 12:05:45 -03:00
Gabriel Luiz Freitas Almeida
d2ae691356
chore: Update schema.py and service.py to handle file serialization and deserialization (#2159)
Refactor the MessageModel class in schema.py to include methods for validating and serializing the 'files' field. This ensures that the 'files' field can be properly handled when it is a string or a list.

In service.py, update the query in the MonitorService class to include the 'files' field when retrieving messages from the database. This ensures that the 'files' field is included in the query results.
2024-06-13 08:01:38 -07:00
anovazzi1
ea305b824c chore: Update displayOutputPreview logic in ParameterComponent 2024-06-13 12:01:02 -03:00
ogabrielluiz
8fef4b2d3a chore: Update langflow-base and langflow package versions to 0.0.66 and 1.0.0a55 respectively 2024-06-13 11:30:20 -03:00
Gabriel Luiz Freitas Almeida
18b95c5092
chore: Update duckdb dependency to version 1.0.0 and improve MonitorService code (#2158) 2024-06-13 07:27:15 -07:00
Gabriel Luiz Freitas Almeida
34b6153fed
chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components (#2157)
* chore: Update persist_directory parameter to handle None value in ChromaSearch and Chroma components

* 🐛 (test_endpoints.py): fix assertion to check for correct key name in output results for chat and any input types
2024-06-13 06:52:32 -07:00
cristhianzl
80634f9547 🐛 (index.tsx): remove debugger statement to clean up code
♻️ (index.tsx): remove unnecessary trailing commas for consistency
🐛 (foldersStore.tsx): add optional chaining to handle potential undefined responses
♻️ (foldersStore.tsx): remove unnecessary trailing commas for consistency
2024-06-13 09:52:20 -03:00
cristhianzl
84df4fd8e4 ♻️ (authContext.tsx): remove unused import and comment out unused code
🐛 (flowSettingsModal): fix potential null reference error in useEffect dependencies
2024-06-13 09:33:03 -03:00
ogabrielluiz
e98e3f5387 chore: Update package versions in pyproject.toml files 2024-06-13 01:08:28 -03:00
Jordan Frazier
061809a94e
[feat] add embedding dimensions parameters to openai models (#2146)
Add embedding dimensions parameters to openai models
2024-06-12 21:05:05 -07:00
Ítalo Johnny
5ce1192a1b
Improve makefile [edited] (#2141)
* ignore sqlite tmp files

* update many dependencies to be optional

* improve makefile help messagem

* chore: Update langflow-base dependency to use local path for development

* change postgres to mandatory dependency

* improve makefile readability

* Revert update many dependencies to be optional

This reverts commit 80780565df5bc63632e6971054670cee467542f9.

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-06-12 21:04:13 -07:00
cristhianzl
b72ee8fab6 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 19:43:49 -03:00
cristhianzl
45963ffce0 ♻️ (index.tsx): remove unnecessary trailing commas to improve code readability
🐛 (index.tsx): fix conditional rendering of Download option in toolbar
 (ProfilePictureForm): add setLoading(false) after updating state to ensure loading state is reset
2024-06-12 19:43:41 -03:00
italojohnny
34ca9a6a00 Revert "Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev"
This reverts commit 32f67f8dba, reversing
changes made to 716bd2f65b.
2024-06-12 19:22:49 -03:00
cristhianzl
32f67f8dba Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 17:51:18 -03:00
cristhianzl
716bd2f65b Refactor code to handle artifacts in chat messages and improve error handling 2024-06-12 17:50:51 -03:00
italojohnny
12e36bc5d5 remove tmp sqlite files from version control 2024-06-12 16:37:31 -03:00
cristhianzl
148e7fb4ae ]Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 15:49:09 -03:00
cristhianzl
5c9af97bb1 Refactor chatView component to handle artifacts in chat messages 2024-06-12 15:47:15 -03:00
cristhianzl
ca0f5112bc refactor: Fix condition for required fields in MessageModel 2024-06-12 15:47:03 -03:00
italojohnny
20405ffc01 change default openai model to gpt3.5 2024-06-12 15:21:44 -03:00
anovazzi1
fdf44f6bc8
Refactor chatView component and improve error handling (#2144)
* Refactor chatView component to handle artifacts in chat messages, fixing bug on streamed messages after refresh

* Improve error handling and error messages in CustomNodes hooks to provide more informative and user-friendly error messages. This ensures that users are aware of any unexpected errors that occur while updating or adding components, and prompts them to try again. This change also aligns with recent improvements in error handling across the codebase.

* ♻️ (utils.ts): remove unnecessary trailing commas in function parameters

*  (frontend): add constants for error messages in CustomNodes hooks
♻️ (frontend): refactor error handling in CustomNodes hooks to use constants

* feat: Add constants for error messages in CustomNodes hooks

Refactor error handling in CustomNodes hooks to use constants for error messages. This improves code readability and maintainability, ensuring consistent error messages are displayed to users. This change aligns with recent improvements in error handling across the codebase.

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Add missing click event in codeAreaModalComponent.spec.ts

* refactor: Update cURL code generation to use icon-Copy test ID for button click

* refactor: Improve error handling and error messages in CustomNodes hooks

* refactor: Remove unnecessary click event in logs.spec.ts

* refactor: Fix XPath selectors in textInputOutput.spec.ts

* fix python api test

* refactor: Update cURL code generation to use icon-Copy test ID for button click

* fix save component

* refactor: Update API key selection in userSettings.spec.ts

* refactor: Update promptModalComponent.spec.ts

* refactor: Update chatInputOutput.spec.ts for zoom out functionality

* refactor: Add return_message option to ChatInput build_config

* fix streaming

* update example

* update example name

* refactor: Update chatInputOutputUser.spec.ts test to improve readability and maintainability

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
2024-06-12 13:05:31 -03:00
cristhianzl
e86e698aa0 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-06-12 12:43:42 -03:00
cristhianzl
191fae732c ♻️ (GenericNode): refactor to use optional chaining for template fields
♻️ (count-handles): refactor to use optional chaining for template fields

♻️ (get-nodes-with-default-value): refactor to use optional chaining

♻️ (nodeToolbarComponent): refactor to use optional chaining for template fields

💡 (utils.ts): remove unnecessary trailing commas in function parameters to improve code readability and consistency
2024-06-12 12:43:35 -03:00
ogabrielluiz
e3d2b9ff28 chore: Update package versions in pyproject.toml and poetry.lock 2024-06-12 12:26:36 -03:00
cristhianzl
b48caa0b82 fix outdated component on memory conversation 2024-06-12 12:10:50 -03:00
cristhianzl
7fc92e2e9c 🐛 (flowSettingsModal): set isSaving to false on error to fix loading state 2024-06-12 10:59:22 -03:00
Nicolò Boschi
968ec28fbc
docker: force python version to 3.12.3 (#2148)
* docker: force python version to 3.12.3

* also fixes pydantic

* remove ci build - too slow

* use lock file for deps

* use poetry.lock

* use poetry.lock
2024-06-12 06:09:46 -07:00
Nicolò Boschi
9261bc0a6f
docker: add customizable port for frontend image (#2147) 2024-06-12 06:08:23 -07:00
ming
121b55231c
use Astra DB Application Token for all Astra token's display_name (#2143) 2024-06-11 16:34:54 -07: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
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
Rodrigo
b7a63154c3 chore: Update ChatInput.py to include Text import and modify return type 2024-06-11 15:27:57 -03:00