Commit graph

5,500 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6f131dbef7 update lock 2023-06-06 07:41:07 -03:00
Gabriel Luiz Freitas Almeida
659c1ec3e1
Bump version to 0.0.82 2023-06-06 06:51:10 -03:00
Gabriel Luiz Freitas Almeida
1095b467a8
build: public push and change branch (#444)
- Added `--public` to `lcserve_push` target to make sure it is
accessible to everyone (already done in `dev` branch)
- Changed `langchain-serve` trigger to `main` branch as the release it
done from main
2023-06-06 06:46:10 -03:00
Deepankar Mahapatro
4c154a2b4e build: public push and change branch 2023-06-06 09:19:29 +05:30
Deepankar Mahapatro
239a87d9e4 Merge branch 'main' into lcserve-public 2023-06-06 09:06:56 +05:30
Deepankar Mahapatro
fad71a139f build: public push and change branch 2023-06-06 09:01:04 +05:30
Cristhian Zanforlin Lousa
2a22943d90 adding variables table for edit and css table 2023-06-05 23:02:08 -03:00
anovazzi1
4f7871ff8b
Surface an error message when a flow has an unknown node type. (#428)
This improves the user experience for issues like #283.
2023-06-05 22:51:42 -03:00
Gabriel Luiz Freitas Almeida
77ee6ecf59 Merge remote-tracking branch 'origin/dev' into db 2023-06-05 22:18:07 -03:00
anovazzi1
8ddcbcd125
Add shadTooltip for Edge Class Grouping (#434)
Description:
This pull request introduces a new feature that installs the shadTooltip
library into the project. Additionally, it enhances the tooltip
functionality by grouping the tooltips based on their associated edge
classes.

Changes Made:
Added the shadTooltip library to the project dependencies.
Implemented logic to group tooltips based on their respective edge
classes.
Updated the tooltip rendering code to display grouped tooltips on the
edges.
2023-06-05 20:40:56 -03:00
Gabriel Luiz Freitas Almeida
d39514a137
Toolkits now work as tools (#410) 2023-06-05 20:28:06 -03:00
Cristhian Zanforlin Lousa
39e3196933 Changing layout of edit node modal 2023-06-05 20:07:08 -03:00
anovazzi1
33399dfba3
Dark mode after refreshing page (#430)
### Description
This pull request introduces an enhancement to the existing application
by adding persistence to the dark mode feature. Currently, when the page
is refreshed, the dark mode setting reverts to the default light mode.
With this enhancement, the dark mode state will be maintained even after
refreshing the page.

### Changes Made
1. Added a new setting in the application to store the user's preference
for dark mode.
2. Implemented functionality to persist the dark mode preference in
local storage.
3. Modified the page initialization logic to retrieve the dark mode
preference from local storage and apply it on page load.
2023-06-05 18:02:56 -03:00
Gabriel Luiz Freitas Almeida
5a103f0f6f 🔨 refactor(base.py): extract methods to handle model-specific and API key-specific field values
This commit refactors the FrontendNode class by extracting two methods to handle specific field values related to models and API keys. The _handle_model_specific_field_values method handles the options and is_list properties for fields related to models, while the _handle_api_key_specific_field_values method handles the display_name and required properties for fields related to API keys. This improves the readability and maintainability of the code.
2023-06-05 13:48:17 -03:00
Gabriel Luiz Freitas Almeida
ec585b8acc 🐛 fix(flow.py): change flow field type from str to Dict to allow for JSON data
 feat(flow.py): add validator to ensure flow field is a valid JSON object with required fields
The flow field in the FlowBase model has been changed from a string to a dictionary to allow for JSON data. A validator has been added to ensure that the flow field is a valid JSON object with the required fields. The tests have been updated to reflect these changes.
2023-06-05 13:40:14 -03:00
Jacob Lee
5b28bbb795 Initial support for Azure LLM nodes.
There are still some rough edges due to underlying langchain and
openai API limitations, e.g. hwchase17/langchain#3769 and
openai/openai-python#411. Notably, you can't use the Azure and
non-Azure node types in the same server, since there's global openai
configuration needed to choose between the two. So it's probably best
to still leave the Azure node types commented out in the default
config. But with this PR, if you uncomment those nodes and start the
server with OPENAI_API_TYPE=azure, you will have working Azure nodes.
2023-06-05 09:55:16 -05:00
Lucas Oliveira
521cecf2c1 Fixed visual things at the meeting 2023-06-05 11:39:20 -03:00
Lucas Oliveira
886a938b98 Rename component added and set 2023-06-05 10:11:56 -03:00
Lucas Oliveira
2a6c8ae92e Fixed header to display options only on flow name 2023-06-05 08:02:35 -03:00
Lucas Oliveira
56d0898861 Merge branch 'dev' into mainPage 2023-06-05 07:43:31 -03:00
Lucas Oliveira
24e205287a Added header 2023-06-05 07:42:07 -03:00
Gabriel Luiz Freitas Almeida
5a46c1e1a0 🐛 fix(database.py): handle case where data does not contain "flows" key
 feat(database.py): add default argument to json.dumps to handle datetime objects
🚨 test(database.py): add tests for batch flow creation, file upload, and file download
The fix in database.py handles the case where the data dictionary does not contain the "flows" key. This is important because the code assumes that the "flows" key is present and will raise an exception if it is not. The fix adds a check to see if the "flows" key is present and if not, it creates a new FlowListCreate object with the data as a list of FlowCreate objects.

The feature in database.py adds a default argument to the json.dumps function to handle datetime objects. This is important because the default json encoder does not handle datetime objects and will raise an exception if it encounters one.

The tests in test_database.py cover the batch creation of flows, uploading a file containing flows, and downloading a file containing flows. These tests ensure that the endpoints are working as expected and that the data is being handled correctly.
2023-06-04 22:58:43 -03:00
Gabriel Luiz Freitas Almeida
ce2f0ebf48 update poetry lock 2023-06-04 22:15:49 -03:00
Gabriel Luiz Freitas Almeida
af0d9456b5 Merge branch 'dev' into db 2023-06-04 22:14:25 -03:00
Gabriel Luiz Freitas Almeida
eeee895f6a 🔒 chore(pyproject.toml): update fastapi dependency to version 0.96.0
FastAPI dependency has been updated to version 0.96.0 to ensure that the application is using the latest version of the framework.
2023-06-04 21:42:14 -03:00
Gabriel Luiz Freitas Almeida
42c7e1c331 🚀 feat(flow.py): add relationship to FlowStyle model
🚀 feat(flowstyle.py): add FlowStyle model
🚀 feat(flowstyle.py): add FlowStyleCreate and FlowStyleRead models
🐛 fix(settings.py): correct typo in database_url variable name
The Flow model now has a relationship to the FlowStyle model, which allows for the creation of a FlowStyle object that is associated with a Flow object. The FlowStyle model is a new model that contains the color and emoji fields, which are used to style the Flow object. The FlowStyleCreate and FlowStyleRead models are used to create and read FlowStyle objects respectively. The typo in the database_url variable name has been corrected to ensure that the application connects to the correct database.
2023-06-04 21:36:03 -03:00
Gabriel Luiz Freitas Almeida
e01f1b44da
Added HuggingFaceHub and fixed the stream parameter + added summariza… (#435) 2023-06-02 19:23:57 -03:00
Gabriel Luiz Freitas Almeida
00100ff9f1 🔖 chore(pyproject.toml): bump up version to 0.0.81
The version number in the pyproject.toml file has been updated from 0.0.80 to 0.0.81. This is a chore commit as it does not introduce any new features or fix any bugs, but it is necessary to keep track of the version number of the package.
2023-06-02 19:16:09 -03:00
GMS
858b88240e Set text-generation as a default task value 2023-06-02 22:16:43 +01:00
Cristhian Zanforlin Lousa
1bd3303c52 Change the delay to open to instant 2023-06-02 17:49:53 -03:00
Gabriel Luiz Freitas Almeida
b754c8b490 Merge branch 'jimwhite-anthropic' into dev 2023-06-02 17:43:19 -03:00
Cristhian Zanforlin Lousa
c8665ef422 Fixing css formatting codacy 2023-06-02 17:35:30 -03:00
Cristhian Zanforlin Lousa
f0ca7eeac8 formatting with codacy 2023-06-02 17:29:22 -03:00
GMS
90d2517fc1 Added HuggingFaceHub and fixed the stream parameter + added summarization as a task option 2023-06-02 21:22:21 +01:00
Cristhian Zanforlin Lousa
bd7cb06e91 merge fix 2023-06-02 17:17:51 -03:00
Cristhian Zanforlin Lousa
02cb94709d Adding shad tooltip and grouping by class on edges 2023-06-02 17:15:59 -03:00
Jim White
cce41189e9 Trim too long comments about Anthropic models. 2023-06-02 12:18:38 -07:00
Jim White
07afc08129 Add model names for Anthropic and add ChatAnthropic (preferred over the deprecated Anthropic LLM). 2023-06-02 12:08:57 -07:00
Gabriel Luiz Freitas Almeida
df3cdb90b7 🔨 refactor(types.py): reorder class definitions to match the order of their usage in the code
The order of the class definitions in the file has been changed to match the order of their usage in the code. This improves the readability of the code and makes it easier to understand the relationships between the classes. No functionality has been changed.
2023-06-02 14:21:38 -03:00
anovazzi1
430043098d fix dropdown value with wrong color 2023-06-02 14:15:06 -03:00
Gabriel Luiz Freitas Almeida
534f47f153 🔨 refactor(types.py): import flatten_list function from graph.utils module
This commit simply imports the flatten_list function from the graph.utils module to be used in the AgentVertex class. This improves the readability of the code and reduces the number of lines of code.
2023-06-02 14:14:47 -03:00
Gabriel Luiz Freitas Almeida
9517ffe3b3 Merge remote-tracking branch 'origin/dev' into fix_toolkits 2023-06-02 12:56:02 -03:00
Gabriel Luiz Freitas Almeida
e21447aad8
refactor: change Node to Vertex (#426) 2023-06-02 12:16:55 -03:00
Gabriel Luiz Freitas Almeida
b7286afd32 🎨 style(types.py): improve readability of return statement in TextSplitterVertex
The return statement in TextSplitterVertex was improved to be more readable by adding a new line before the Documents field. This makes it easier to read and understand the output of the function.
2023-06-02 12:14:03 -03:00
Gabriel Luiz Freitas Almeida
b75892855f
🚀 feat(langflow): add PythonFunctionTool to the custom tools (#417) 2023-06-02 12:11:24 -03:00
Gabriel Luiz Freitas Almeida
73e07be0c7
Merge branch 'dev' into python_function_tool 2023-06-02 12:11:02 -03:00
anovazzi1
7d49319696 saving darkMode on localStorage 2023-06-02 11:23:55 -03:00
Jim White
4f152bc7ef Fix view for regular Anthropic logo 2023-06-01 23:28:44 -07:00
Jim White
8a049187df Add Anthropic to LLMs including an icon. 2023-06-01 22:55:02 -07:00
Cristhian Zanforlin Lousa
0e234030a9 Starting migration for shadUI 2023-06-01 21:10:27 -03:00