Commit graph

10,090 commits

Author SHA1 Message Date
Lucas Oliveira
c1947a0192
Fix Global Components bug (#2478)
* removed unused console.logs

* Fixed load_from_db not being updated
2024-07-02 13:10:48 +00:00
Igor Carvalho
7653b5e2f0
fix: ctrl f overriding browser ctrl f when editing node (#2358)
* Fix: Ctrl F overriding browser ctrl f when editing node

* Refactor: use noflow class instead of isThereModal function

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
2024-07-02 12:26:21 +00:00
Nicolò Boschi
f2bf62e284
ci: fix mypy checks (#2431)
* ci: fix mypy

* ci: fix mypy

* ci: fix mypy

* run fe checks

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 14:42:14 -07:00
Cristhian Zanforlin Lousa
f70106aaec
bugfix: fix crashing langflow when keypairlistcomponent advanced opens (#2462) 2024-07-01 20:30:32 +00:00
Cristhian Zanforlin Lousa
e8517e067a
removing duplicate tests from frontend (#2459)
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-01 20:24:28 +00:00
Gabriel Luiz Freitas Almeida
f06657d985 Merge branch 'dev' into dev_to_main 2024-07-01 15:04:56 -03:00
Dmitry Galanov
bd20885a3b (fix) Add gpt4 to openai_constants.py (#2416)
(fix) Add gpt4 to openai_constants

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-07-01 13:53:55 -03:00
Cristhian Zanforlin Lousa
b0fcb91d35 add a new test for a huge flow -> decisionFlow (#2456)
* add test to decision flow

* add test to decision flow

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
ming
3015d2f138 loguru support standout logging with json and csv (#2415)
support standout logging with json and csv

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
Lucas Oliveira
b31c5e6b4a Fix Global Variables (#2430)
* chore: update linting workflows to include dev branch in merge_group

* Update README.md

Add 1.0 banner

* Update README.md

* chore: update package versions in pyproject.toml files

* Added db value to every onChange on parameters

* Refactored global variables to find variables on the first render, and to execute just one onChange to update both values and db

* Changed group recursion function to include check for global variables already applied or outdated

* Removed already inserted component check for default fields on global variables

* Fixed import error

* Added required parameters to update node on drop

* Removed check for unused hardcoded name

* Added global variables handling on nodes when adding a flow

* Fixed maximum update depth when deleting used global variable

* Fixed type error on addNewVariableButton modal

* Fixed openai api key on starter flows

* Fixed values to get the .env values by default on the starter projects

* Formatted flows

* fix erros reported by mypy

* [autofix.ci] apply automated fixes

* 🐛 (prototypes/__init__.py): fix missing comma in the list of imported components to prevent syntax error

* chore: Fix type hinting in ConditionalRouterComponent

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Rodrigo Nader <rodrigosilvanader@gmail.com>
Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
Gabriel Luiz Freitas Almeida
fd1c5cc84e ♻️ (code_parser.py): remove redundant condition that caused Component to not be parsed (#2406)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
Gabriel Luiz Freitas Almeida
6a6bb3e13a fix: Add LanguageModel to field_typing module (#2410)
* feat: Add LanguageModel to field_typing module

* chore: Fix type annotations in model build methods

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
anovazzi1
607e167cc3 fix playground button on store (#2417)
* fix playground on store

* [autofix.ci] apply automated fixes

* Format code

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
anovazzi1
896c66813f fix name on EditNodeModal (#2434)
* fix name on EditNodeModal

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
Gabriel Luiz Freitas Almeida
73e38a0c73 chore: Refactor authentication key generation (#2443)
Refactor the `ensure_valid_key` function in `utils.py` to improve the generation of a valid key for authentication. The function now checks if the input key is too short and generates a random key if necessary. Additionally, the key is now URL-safe base64-encoded. This change enhances the security and reliability of the authentication process.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-01 13:53:55 -03:00
Gabriel Luiz Freitas Almeida
cd3f6c4c52 chore: fix lint errors (#2445)
* chore: Fix type hinting in ConditionalRouterComponent

* refactor: Update PassComponent to PassMessageComponent
2024-07-01 13:53:55 -03:00
anovazzi1
cc53ce4380 format code 2024-07-01 13:53:55 -03:00
anovazzi1
71f3bfcf51 feat: convert non-object rows to array of objects in DataOutputComponent 2024-07-01 13:53:55 -03:00
anovazzi1
69a843aa66 code format 2024-07-01 13:53:55 -03:00
anovazzi1
ee9212e8ee chore: Update proxy IDs on group node outputs to ensure consistency 2024-07-01 13:53:55 -03:00
autofix-ci[bot]
e5b7477a90 [autofix.ci] apply automated fixes 2024-07-01 13:53:55 -03:00
igorrCarvalho
ad3c47b8fd fix: Tweaks tab dissapearing with hook component 2024-07-01 13:53:55 -03:00
anovazzi1
a008f8a3de format code 2024-07-01 13:53:55 -03:00
anovazzi1
5cbe19934e fix edit method on messages 2024-07-01 13:53:55 -03:00
autofix-ci[bot]
6def02d3d1 [autofix.ci] apply automated fixes 2024-07-01 13:53:55 -03:00
igorrCarvalho
87cf28e158 Refactor: enable node copy for multiple selection 2024-07-01 13:53:55 -03:00
igorrCarvalho
363ea8895e Fix: Ctrl + C not working on tooltips 2024-07-01 13:53:55 -03:00
Lucas Oliveira
8be557b3c2 Formatted 2024-07-01 13:53:55 -03:00
Lucas Oliveira
3c53f1d27b Fixed status not being deleted when building the flows 2024-07-01 13:53:55 -03:00
italojohnny
9f2e608fcd fix delete messages 2024-07-01 13:53:55 -03:00
cristhianzl
43e44ab221 removing wrong code pushed 2024-07-01 13:53:55 -03:00
cristhianzl
3ecb223c87 fix: Remove unused code in textInputOutput.spec.ts
``
2024-07-01 13:53:55 -03:00
cristhianzl
e9032c9f11 test webhook 2024-07-01 13:53:55 -03:00
cristhianzl
227ad4f2e9 remove console.log 2024-07-01 13:53:55 -03:00
cristhianzl
a479223967 added rerun tests 2024-07-01 13:53:55 -03:00
cristhianzl
6568f910a9 🐛 (messagesPage): fix selection mapping to use row.id instead of row.index
 (tests): add end-to-end tests for basic prompting and general bugs

 (tests): add end-to-end test for deleting rows from table message
🔧 (tsconfig.json): update test file name for generalBugs to shard-0 spec
2024-07-01 13:53:55 -03:00
autofix-ci[bot]
70e9f06834 [autofix.ci] apply automated fixes 2024-07-01 13:53:55 -03:00
Rodrigo
093fa018f1 feat: Add CreateListComponent for creating a list of texts
This commit adds a new component called CreateListComponent, which is responsible for creating a list of texts. The component takes in one or more texts as input and outputs a list of Data objects. This component is useful for scenarios where a list of texts needs to be processed or manipulated.

The CreateListComponent class is added to the helpers module in the langflow.components package. It includes the necessary inputs and outputs, as well as a create_list method that generates the list of Data objects based on the input texts.

This commit also includes some minor changes to other files, such as renaming the UUIDGeneratorComponent to IDGeneratorComponent and updating import statements.
2024-07-01 13:53:55 -03:00
anovazzi1
d5f034e667 Format code 2024-07-01 13:53:55 -03:00
igorrCarvalho
57623be595 Feat: add more types 2024-07-01 13:53:55 -03:00
cristhianzl
c8377e9909 ♻️ (frontend): remove console.log statements from various components 2024-07-01 13:53:55 -03:00
cristhianzl
5d58e796d4 add tests improvements 2024-07-01 13:53:55 -03:00
Gabriel Luiz Freitas Almeida
b19264506c chore: Add inputs parameter to end method in BaseTracer 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
a180e9e7c4 chore: Update LangSmithTracer constructor parameter type to UUID 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
293adb0417 🐛 (custom_component.py): fix issue where name was not being set correctly when name is None and self.display_name is True 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
08b2322a73 ♻️ (base.py): Refactor add_trace and end_trace methods to use Union type for optional arguments to improve code readability and type safety 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
e94d8254fb 📝 (base.py): add abstract method __init__ to BaseTracer class with required parameters to enforce implementation in subclasses 2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
f8ace79af3 chore: Add metadata parameter to end method in BaseTracer
This commit adds a new optional `metadata` parameter to the `end` method in the `BaseTracer` class. The `metadata` parameter allows for passing additional information related to the tracing process. This enhancement provides more flexibility and extensibility to the tracing functionality.
2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
67a34ffcb8 Refactor: handle error when retrieving messages from monitor service
This commit refactors the code in the `migrate_messages_from_monitor_service_to_database` function to handle errors that may occur when retrieving messages from the monitor service. If an exception is raised, the error is logged and the function returns `False`. This ensures that the migration process can continue even if there is an issue with retrieving the messages.
2024-07-01 13:53:39 -03:00
Gabriel Luiz Freitas Almeida
089ad6695c chore: Update LangSmithTracer import in tracing service 2024-07-01 13:53:39 -03:00