Commit graph

14,628 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
340df293ba Add check-format script and update lint-js.yml (#2357)
* chore: Add check-format script to package.json for code formatting consistency

* chore: Update lint-js.yml to use npm run check-format instead of npm run format
2024-07-01 13:53:37 -03:00
cristhianzl
fa4dd19ce6 ♻️ (flows.py): rename loop variable flow to _flow to avoid shadowing and improve readability 2024-07-01 13:53:37 -03:00
cristhianzl
496f4f6b91 refactor: Ensure flow names are unique by appending a number if necessary 2024-07-01 13:53:37 -03:00
Dmitry Galanov
3b07edad45
(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 09:44:20 -07:00
Cristhian Zanforlin Lousa
b6e2d4823e
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 09:37:36 -07:00
ming
46f9f8c852
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 09:36:30 -07:00
Lucas Oliveira
f3df98a29c
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 09:31:06 -07:00
Gabriel Luiz Freitas Almeida
9b2edad404
♻️ (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 09:30:46 -07:00
Gabriel Luiz Freitas Almeida
8e216e5d9b
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 09:29:27 -07:00
anovazzi1
b458875b4f
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 09:29:00 -07:00
anovazzi1
b384402c07
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 09:27:17 -07:00
Gabriel Luiz Freitas Almeida
f8cbd1ec03
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 09:26:35 -07:00
Gabriel Luiz Freitas Almeida
d5c4c2be65
Update to render.yaml and render.Dockerfile for fix deployment on render platform (#2433)
This PR updates the files render.yml and docker/render.Dockerfile to fix
the deployment on the Render platform.
2024-07-01 14:08:35 +00:00
dependabot[bot]
2a98346740
chore(deps): bump install-pinned/ruff
Bumps [install-pinned/ruff](https://github.com/install-pinned/ruff) from 6b463d795ce39011cc004438ae507ae56235e12a to b52a71f70b28264686d57d1efef1ba845b9cec6c.
- [Release notes](https://github.com/install-pinned/ruff/releases)
- [Commits](6b463d795c...b52a71f70b)

---
updated-dependencies:
- dependency-name: install-pinned/ruff
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-01 13:58:41 +00:00
Ítalo Johnny
2c507dd7de
Merge branch 'dev' into lf/fix_render 2024-07-01 10:48:54 -03:00
anovazzi1
d3b0a9c3d1
bugfix: error on deleting messages from table + tests (#2432)
🐛 (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-06-30 15:14:44 +00:00
Gabriel Luiz Freitas Almeida
9dbd9ccd85
Merge branch 'dev' into cz/fix-messages-deleting-error 2024-06-30 11:57:24 -03:00
Gabriel Luiz Freitas Almeida
a428d168fa
chore: fix lint errors (#2445)
* chore: Fix type hinting in ConditionalRouterComponent

* refactor: Update PassComponent to PassMessageComponent
2024-06-30 07:51:09 -07:00
Gabriel Luiz Freitas Almeida
f6ceb59b6f
Merge branch 'dev' into cz/fix-messages-deleting-error 2024-06-30 11:26:10 -03:00
Gabriel Luiz Freitas Almeida
e7239f9a7a chore: Update branch checkout description in TypeScript test workflow 2024-06-30 11:22:53 -03:00
anovazzi1
cfdfa0f0f8
fix list display in output inspection (#2409)
create an object for basic array types in output inspection
2024-06-28 20:45:22 +00:00
anovazzi1
d629ff2fb5
Update proxy IDs on group node outputs (#2364)
This pull request focuses on updating the proxy IDs for the outputs of
group nodes within our project.
2024-06-28 20:40:19 +00:00
Cristhian Zanforlin Lousa
b4f1c008ad
Fix: Tweaks tab dissapearing with hook component (#2412)
This pull request addresses an issue where the tweaks tab on ApiModal
disappears when using a webhook component.
2024-06-28 20:35:18 +00:00
anovazzi1
0918891c28
fix edit method on messages (#2435)
fix bug where messages couldn't be edited.
Change post to put on frontend
2024-06-28 20:30:07 +00:00
anovazzi1
659fe349a5
Fix: Ctrl + C not working on tooltips (#2418)
This PR addresses an issue where Ctrl + C was not working correctly
within tooltips. This fix ensures that users can copy text from tooltips
using the Ctrl + C shortcut without any issues.
2024-06-28 20:25:24 +00:00
cristhianzl
a86c252edd Merge branch 'cz/fix-messages-deleting-error' of https://github.com/langflow-ai/langflow into cz/fix-messages-deleting-error 2024-06-28 17:16:02 -03:00
cristhianzl
90a908a817 removing wrong code pushed 2024-06-28 17:15:50 -03:00
anovazzi1
e13736249d
Merge branch 'dev' into fixList 2024-06-28 17:09:24 -03:00
anovazzi1
45b909310d
Merge branch 'dev' into fixGroupLogs 2024-06-28 17:08:56 -03:00
anovazzi1
324ad666d1
Merge branch 'dev' into ic/fixTweaksTab 2024-06-28 17:08:24 -03:00
anovazzi1
7fbc5205b0
Merge branch 'dev' into fixMessagesEdit 2024-06-28 17:07:30 -03:00
anovazzi1
85ba7a5067
Merge branch 'dev' into ic/fixCopy 2024-06-28 17:07:03 -03:00
anovazzi1
13189c9ba3
Merge branch 'dev' into cz/fix-messages-deleting-error 2024-06-28 17:05:26 -03:00
anovazzi1
08b278fc3a
Merge branch 'dev' into fixMessagesEdit 2024-06-28 17:04:18 -03:00
Lucas Oliveira
f19431e2c7
Fix Build Status (#2437)
Fixed nodes having the previous build status while waiting for other
nodes to build
2024-06-28 19:50:24 +00:00
anovazzi1
975dc8876b
Fix Endpoint to Properly Delete Messages from Database (#2436)
This PR addresses an issue with the endpoint that was failing to delete
messages from the database. The necessary corrections have been made to
ensure that messages are now properly removed when the endpoint is
called.
2024-06-28 19:39:18 +00:00
Lucas Oliveira
33c8539841 Formatted 2024-06-28 16:38:08 -03:00
anovazzi1
e7e14402a8 format code 2024-06-28 16:36:00 -03:00
Lucas Oliveira
544846cfdd Fixed status not being deleted when building the flows 2024-06-28 16:34:33 -03:00
italojohnny
b9cbb90ae8 fix delete messages 2024-06-28 16:19:04 -03:00
cristhianzl
8f2d9e01df fix: Remove unused code in textInputOutput.spec.ts
``
2024-06-28 15:54:19 -03:00
anovazzi1
9452208fc2 fix edit method on messages 2024-06-28 15:34:38 -03:00
cristhianzl
356905c383 test webhook 2024-06-28 15:03:32 -03:00
cristhianzl
5cf24f0ea4 Merge branch 'cz/fix-messages-deleting-error' of https://github.com/langflow-ai/langflow into cz/fix-messages-deleting-error 2024-06-28 14:26:25 -03:00
cristhianzl
17165a00d3 remove console.log 2024-06-28 14:26:10 -03:00
italojohnny
32fdc26266 update blueprint render 2024-06-28 12:50:50 -03:00
italojohnny
fa9294327a update dockerfile 2024-06-28 12:50:45 -03:00
Cristhian Zanforlin Lousa
0082d87d7c
Merge branch 'dev' into cz/fix-messages-deleting-error 2024-06-28 12:16:24 -03:00
cristhianzl
224d447f6b chore: Add branch input parameter to Frontend Tests workflow 2024-06-28 12:05:48 -03:00
cristhianzl
8eae1cd8a8 added rerun tests 2024-06-28 12:03:54 -03:00