Commit graph

926 commits

Author SHA1 Message Date
anovazzi1
ed312f1011
Auto update nodes (#218)
This new feature will ensure that any changes made to a template will be
automatically reflected in all nodes related to that template. This will
save time and effort, as users will no longer need to manually update
each node individually. Additionally, this feature will help to reduce
the risk of errors and inconsistencies across nodes and flows.
To implement this feature, I have created a new function that checks the
last template related to each node and compares it with the current
template version. If there is a difference, the node will be
automatically updated with the latest version of the template.
2023-04-29 01:10:39 -03:00
anovazzi1
b206a5bbe5 Merge branch 'dev' into autoUpdateNodes 2023-04-29 01:07:03 -03:00
Gabriel Luiz Freitas Almeida
5489717dab
Node modal (#174) 2023-04-29 04:02:08 +00:00
Gabriel Luiz Freitas Almeida
eebe5d3643
Merge branch 'dev' into autoUpdateNodes 2023-04-29 03:53:34 +00:00
Gabriel Almeida
8d5adbf266 fix: tests 2023-04-29 00:36:06 -03:00
Gabriel Almeida
1c35179aec refactor(nodes.py): remove unnecessary else statement in ChainFrontendNode class 2023-04-28 23:38:36 -03:00
Gabriel Almeida
c5d09f0e88 refactor(nodes.py): set advanced field to False for fields other than prompt in ChainFrontendNode class 2023-04-28 20:07:59 -03:00
anovazzi1
ccd8a3fe09 check advanced on node too 2023-04-28 20:02:37 -03:00
anovazzi1
8d29bd1b0a hide advanced icon if all the fields aren't advancedand show true 2023-04-28 19:46:53 -03:00
anovazzi1
733f62defb remove error on console 2023-04-28 19:44:15 -03:00
anovazzi1
cfe74e6765 Merge branch 'NodeModal' of personal:logspace-ai/langflow into NodeModal 2023-04-28 19:41:26 -03:00
anovazzi1
11b82aa556 hide advanced icon if all the fields aren't advanced 2023-04-28 19:41:17 -03:00
Gabriel Almeida
f3d385b8e5 feat(tests): add "advanced" field to all template objects in test files
feat(tests): add 'advanced' field to template properties in test files
2023-04-28 19:18:17 -03:00
Gabriel Almeida
0fd8f73c08 refactor(langflow): set advanced flag to True for TemplateFieldCreator class
refactor(langflow): set advanced flag to False for LLMFrontendNode class' api key field
feat(langflow): add show flag to LLMFrontendNode class' model_kwargs field
refactor(langflow): set advanced flag to False and show flag to True for LLMFrontendNode class' model_name and temperature fields
2023-04-28 19:17:38 -03:00
Aaron ("AJ") Steers
be9497718f docs: add readme guide 2023-04-28 18:56:16 +00:00
Aaron ("AJ") Steers
9252d34d04 chore: autoformat 2023-04-28 18:56:16 +00:00
Aaron ("AJ") Steers
88fabf93b0 chore: rename base devcontainer, add dind, add postcreate poetry install 2023-04-28 18:56:16 +00:00
Aaron ("AJ") Steers
5faf0f6dc7 feat: add demo devcontainer 2023-04-28 18:56:16 +00:00
anovazzi1
69c7bbb0a9 fixed wrong bolean logic, now show in modal only if show is true 2023-04-27 20:48:52 -03:00
anovazzi1
1f9cc38fd8 Merge branch 'dev' into NodeModal 2023-04-27 20:37:04 -03:00
anovazzi1
65172707d9 Merge branch 'dev' into NodeModal 2023-04-27 20:22:21 -03:00
anovazzi1
be25947f55 check if show if false to add item on advanced modal 2023-04-27 19:36:37 -03:00
anovazzi1
a75f22fe21 update template working for import 2023-04-27 19:29:50 -03:00
anovazzi1
d91beb9cda update template working for local flow on browser 2023-04-27 19:24:02 -03:00
Gabriel Luiz Freitas Almeida
700061ce19
Update the Semver Specifier for langchain to allow for all <0.1.0 versions. (#86) 2023-04-27 17:13:21 -03:00
Gabriel Almeida
7659fbffcd chore(pyproject.toml): update langchain dependency from ~0.0.113 to ~0.0.150 2023-04-27 17:04:35 -03:00
Gabriel Luiz Freitas Almeida
10cabefa5a
Merge branch 'dev' into task/update_langchain_semver 2023-04-27 16:58:50 -03:00
Gabriel Luiz Freitas Almeida
d78f8bea2c
Merge branch 'main' into task/update_langchain_semver 2023-04-27 16:57:22 -03:00
Gabriel Almeida
a067b38d9a build(pyproject.toml): add pytest-cov package to dev dependencies 2023-04-27 15:03:11 -03:00
Gabriel Almeida
3b5b63e070 refactor(loading.py): add comment explaining type ignore for agent variable 2023-04-27 15:03:11 -03:00
Gabriel Almeida
f00420ecbe feat(custom.py): pass llm parameter to SQLDatabaseToolkit constructor 2023-04-27 15:03:11 -03:00
Gabriel Almeida
5610073386 chore(pyproject.toml): update package version from 0.0.58 to 0.0.59 2023-04-27 15:03:11 -03:00
Gabriel Almeida
7309734307 chore(pyproject.toml): update langchain dependency from 0.0.131 to 0.0.150 2023-04-27 15:03:11 -03:00
anovazzi1
1f095cc056
Example loader and bugfixes (#199) 2023-04-25 23:27:16 -03:00
Gabriel Almeida
7eeffc5a6e chore(pyproject.toml): update langflow package version from 0.0.57 to 0.0.58 2023-04-25 21:08:37 -03:00
Gabriel Almeida
601ec86273 style(langflow): fix formatting and add type hinting to custom.py and run.py files 2023-04-25 17:47:43 -03:00
Gabriel Almeida
41f1ba798a refactor(test_llms_template.py): change required fields to optional in tests for huggingfacehub_api_token, openai_api_key, and chat_openai_api_key in llms_template. 2023-04-25 15:38:21 -03:00
Gabriel Almeida
0f0366ebbb Refactor chromadb import in run.py for type hinting
This commit modifies run.py to use type hinting and avoid circular imports by changing the import for NotEnoughElementsException to use type: ignore. Specifically, the code now imports from chromadb.errors instead of chromadb.exceptions.
2023-04-25 15:38:21 -03:00
Gabriel Almeida
c14fb1eac3 feat(base.py): add logic to detect api keys in FrontendNode fields 2023-04-25 15:38:21 -03:00
Gabriel Almeida
3497161105 fix(base.py): set OpenAI API Key field as not required 2023-04-25 15:38:21 -03:00
Gabriel Almeida
c6d2d96da8 refactor(nodes.py): set 'required' field to False for API key and token fields to support loading from environment variables 2023-04-25 15:38:21 -03:00
Gabriel Almeida
39ca499dea style(README.md): Added Open in HF Spaces badge 2023-04-25 11:42:41 -03:00
Gabriel Almeida
c522727d6e Refactor ImportModal code to use useState and useContext hooks
This commit refactors the code for the ImportModal component to use hooks like useState and useContext, resulting in improved readability and maintainability. It also adds functionality to load prebuilt examples and handle local file uploads.
2023-04-25 11:03:11 -03:00
Gabriel Almeida
9f5f222f2a refactor(base.py): remove print statement from ToolCreator class 2023-04-25 09:38:28 -03:00
anovazzi1
b3155a58a9
Add Import Examples Feature to Flow Editor (#175)
This pull request adds a new feature to the flow editor that allows
users to easily import example flows from the
[logspace-ai/langflow_examples](https://github.com/logspace-ai/langflow_examples)
repository on GitHub. The feature is accessible via the import example
button

Clicking on the "Import Examples" button opens a dialog box that
displays a list of available example flows from the GitHub repository.
Users can select one example to import, and the flow editor will
automatically add the selected flow to the user's current project.

This feature saves users time and effort by providing a convenient way
to explore and utilize pre-built flows.

Additionally, this feature promotes collaboration and community
involvement by encouraging users to contribute their own flows to the
repository for others to use and benefit from.
2023-04-24 19:08:21 -03:00
anovazzi1
a15d605cc8 update styles 2023-04-24 19:03:20 -03:00
anovazzi1
a8f2d69f9a updated type type context, need to change place where call api 2023-04-24 18:40:24 -03:00
anovazzi1
9e76c50f09 bug found migrate template code to types context 2023-04-24 18:31:03 -03:00
anovazzi1
2146025d42 Merge branch 'dev' into autoUpdateNodes 2023-04-24 18:02:48 -03:00
Gabriel Almeida
23eb511560 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-04-24 08:40:49 -03:00