Commit graph

5,532 commits

Author SHA1 Message Date
cristhianzl
88657553cb fix(parameterComponent): add unique id to textarea and input components for accessibility and testing purposes
fix(codeAreaComponent): add id prop to Input component for accessibility and testing purposes
fix(promptComponent): add id prop to GenericModal and span elements for accessibility and testing purposes
fix(textAreaComponent): add id prop to Input component for accessibility and testing purposes
fix(EditNodeModal): add unique id to textarea and input components for accessibility and testing purposes
fix(codeAreaModal): add id prop to Input component for accessibility and testing purposes
fix(genericModal): add id prop to GenericModal and span elements for accessibility and testing purposes
fix(components/types): add id prop to component types for consistency and future use
feat(tests): add tests for CodeAreaModalComponent and PromptTemplateComponent
2023-10-11 08:26:38 -03:00
cristhianzl
ecf99cf179 test on Toogle, input, int 2023-10-09 19:53:01 -03:00
Gabriel Luiz Freitas Almeida
4544abe96d
Update README.md (#1020) 2023-10-09 16:53:35 -03:00
Gabriel Luiz Freitas Almeida
c0e25ff911
Valid placeholder name for editFlowSettings component (#1023) 2023-10-09 14:52:24 -03:00
Cristhian Zanforlin Lousa
9e2b73eac9 🔧 fix(DropdownButtonComponent): add id attribute to Button component to improve accessibility and testing capabilities
🔧 fix(floatComponent): add id attribute to Input component to improve accessibility and testing capabilities
🔧 fix(keypairListComponent): add id attribute to Input components to improve accessibility and testing capabilities
🔧 fix(keypairListComponent): add id attribute to Plus and Minus buttons to improve accessibility and testing capabilities
🔧 fix(toggleShadComponent): add id attribute to Switch component to improve accessibility and testing capabilities
🔧 fix(EditNodeModal): add id attribute to ToggleShadComponent component to improve accessibility and testing capabilities
🔧 fix(PageComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(extraSidebarComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(nodeToolbarComponent): add id attribute to div element to improve accessibility and testing capabilities
🔧 fix(nodeToolbarComponent): add id attribute to button element to improve accessibility and testing capabilities
🔧 fix(types/components): add id attribute to ToggleComponentType to improve accessibility and testing capabilities

🚀 feat(keypair.spec.ts): add tests for KeypairListComponent to verify key-value pairs functionality
🚀 feat(float.spec.ts): add tests for FloatComponent to verify float input functionality

🚀 feat: add support for toggling various options in the UI

This commit adds support for toggling various options in the UI. The following options can now be toggled:
- showtemperature
- showtop_k
- showtop_p
- showuse_mlock
- showuse_mmap
- showverbose
- showvocab_only
- showcache
- showecho
- showf16_kv
- showgrammar_path
- showlast_n_tokens_size
- showlogits_all
- showlogprobs
- showlora_base
- showlora_path
- showmax_tokens
- showmetadata
- showmodel_kwargs
- showmodel_path
- shown_batch
- shown_ctx
- shown_gpu_layers
- shown_parts
- shown_threads
- showrepeat_penalty
- showrope_freq_base
- showrope_freq_scale
- showseed
- showstop
- showstreaming
- showsuffix
- showtags

These options can be toggled by clicking on the respective elements in the UI. The commit also includes tests to ensure that the toggling functionality works as expected.
2023-10-09 12:34:35 -03:00
Gabriel Luiz Freitas Almeida
6511522536
Makes workflows run only when needed (#1028) 2023-10-09 11:23:34 -03:00
Gabriel Luiz Freitas Almeida
04ca4ce220 🔧 chore(ci.yml): update CI configuration to include specific paths for push and pull_request events
🔧 chore(ci.yml): update CI configuration to include specific paths for push and pull_request events
2023-10-09 11:22:34 -03:00
Gabriel Luiz Freitas Almeida
4b78140c82 🔧 chore(lint.yml): update lint workflow to include additional paths for linting
🔧 chore(test.yml): update test workflow to include additional paths for testing
2023-10-09 11:22:04 -03:00
Gabriel Luiz Freitas Almeida
6f1306887a 🔧 chore(Makefile): simplify frontend target by combining install_frontend and run_frontend commands
🐛 fix(Makefile): handle error in install_frontend command and attempt to fix it by running install_frontendc
🔧 chore(Makefile): simplify backend target by combining install_backend and run_backend commands
 feat(Makefile): add support for login flag to control autologin feature in backend command
2023-10-08 18:44:08 -03:00
Gabriel Luiz Freitas Almeida
419822211f 🔀 chore(README.md): update GIF link to point to the correct branch (dev) to ensure the latest demo is displayed 2023-10-08 18:01:05 -03:00
Gabriel Luiz Freitas Almeida
1ce520026a Fix langflow gif 2023-10-08 17:57:40 -03:00
Gabriel Luiz Freitas Almeida
c941099275 🐛 fix(Makefile): fix typo in make target name 'install_frontendc' to 'install_frontend' to resolve error during frontend installation
 feat(Makefile): add error handling to retry frontend installation if it fails to ensure successful installation
🐛 fix(Makefile): fix typo in make target name 'install_frontendc' to 'install_frontend' to resolve error during frontend installation
 feat(Makefile): add support for running backend with or without autologin based on the value of the 'autologin' variable
2023-10-08 17:50:14 -03:00
Raj Chauhan
4f9ab6516e
valid placeholder name 2023-10-07 22:56:39 +05:30
Gabriel Luiz Freitas Almeida
61a5c9dcdb 🐛 fix(utils.py): improve error handling in initialize_database() function
The `initialize_database()` function now handles two specific exceptions: "overlaps with other requested revisions" and "Can't locate revision identified by". If either of these exceptions occur, they will not be raised and instead the `alembic_version` table will be deleted. This change improves the error handling and ensures that the database is properly initialized.
2023-10-07 12:03:51 -03:00
Mark Needham
bc286ff4ee
Update README.md 2023-10-06 09:21:11 +01:00
Gabriel Luiz Freitas Almeida
82ad45847f 🔖 chore(pyproject.toml): bump version from 0.5.0 to 0.5.1 to indicate a new release with updates and bug fixes 2023-10-05 18:27:30 -03:00
anovazzi1
0b1f837c2a fix(api.tsx): remove unnecessary try-catch block and add error logging for better debugging
fix(index.ts): remove console.log statement for error logging
2023-10-05 18:27:30 -03:00
anovazzi1
37f35806a6 fix(formModal/index.tsx): update updateLastMessage function to include prompt value when data.type is "end"
fix(formModal/index.tsx): update template.current value when data.type is "prompt" and data.prompt is provided
fix(formModal/index.tsx): remove unnecessary updateLastMessage call when data.type is "stream" and isStream is true
2023-10-05 18:27:30 -03:00
Gabriel Luiz Freitas Almeida
c3197c30f5 🐛 fix(manager.py): change try-except block to if-elif block to improve code readability and maintainability 2023-10-05 18:27:30 -03:00
Gabriel Luiz Freitas Almeida
aec14bd250 🐛 fix(manager.py): remove unnecessary exception handling and logging for JSON decoding error
🐛 fix(manager.py): fix condition for clearing chat history to only clear if "clear_history" key is present and its value is truthy
2023-10-05 18:27:30 -03:00
Gabriel Luiz Freitas Almeida
bc421d7557 🐛 fix(test_agents_template.py): set "required" field to True for the "tools" attribute in the template dictionary to enforce its presence 2023-10-04 17:46:45 -03:00
Gabriel Luiz Freitas Almeida
ed61bb5b8b 🔥 refactor(test_setup_superuser.py): remove unused import and function setup_superuser to improve code readability and maintainability 2023-10-04 17:43:56 -03:00
Gabriel Luiz Freitas Almeida
7e2bce6315 ⬆️ chore(pyproject.toml): update package versions and dependencies
- Update the version of the package "langflow" from "0.5.0b6" to "0.5.0" to indicate a stable release.
- Update the version of the package "fastapi" from "^0.100.0" to "^0.103.0" to use the latest version.
- Update the version of the package "uvicorn" from "^0.22.0" to "^0.23.0" to use the latest version.
- Update the version of the package "langchain" from "^0.0.306" to "^0.0.308" to use the latest version.
- Update the version of the package "tiktoken" from "~0.4.0" to "~0.5.0" to use the latest version.
- Update the version of the package "cohere" from "^4.21.0" to "^4.27.0" to use the latest version.
- Update the version of the package "alembic" from "^1.11.2" to "^1.12.0" to use the latest version.
- Update the version of the package "metal-sdk" from "^2.0.2" to "^2.2.0" to use the latest version.

These updates ensure that the project is using the latest versions of the dependencies and takes advantage of any bug fixes or new features introduced in the updated versions.
2023-10-04 17:43:15 -03:00
Gabriel Luiz Freitas Almeida
62fc19b1e6 🔧 fix(test_setup_superuser.py): comment out unused imports and test cases to improve code readability and maintainability 2023-10-04 17:42:52 -03:00
Gabriel Luiz Freitas Almeida
3183c52594 🔧 chore(constants.py): update CLASSES_TO_REMOVE list to include "RunnableSerializable" class
The "CLASSES_TO_REMOVE" list in the constants.py file has been updated to include the "RunnableSerializable" class. This change was made to ensure that the "RunnableSerializable" class is properly removed when processing the list of classes to remove.
2023-10-04 17:42:41 -03:00
Gabriel Luiz Freitas Almeida
537e1a3e05 🔧 chore(utils.py): refactor get_factories_and_deps function to improve code organization and readability
🔧 chore(utils.py): refactor initialize_services function to use the updated get_factories_and_deps function for better maintainability
2023-10-04 17:42:26 -03:00
Gabriel Luiz Freitas Almeida
79334a10de 🔧 chore(callback.py): refactor StreamingLLMCallbackHandler constructor to improve code readability and maintainability
🐛 fix(callback.py): assign websocket attribute from chat_service.active_connections to self.websocket to avoid potential bugs
2023-10-04 17:42:12 -03:00
Gabriel Luiz Freitas Almeida
0b2cfb3bbe 🐛 fix(agents.py): change 'required' attribute of 'Tool' field in InitializeAgentNode class from False to True to enforce its presence 2023-10-04 17:24:41 -03:00
Gabriel Luiz Freitas Almeida
75319a4579 🔧 chore(alembic): import sqlmodel module to satisfy linter and improve code readability 2023-10-04 15:44:29 -03:00
anovazzi1
c9724d0fb4 added custom component template 2023-10-04 15:37:41 -03:00
anovazzi1
71bc3c4a65 formated code 2023-10-04 15:37:41 -03:00
anovazzi1
3c77728709 created test to save flow and fix bug on nested dict 2023-10-04 15:37:41 -03:00
Gabriel Luiz Freitas Almeida
67c0791e30 📝 docs(README.md): update langflow command in usage instructions to 'langflow run' for clarity and consistency
📝 docs(README.md): update langflow command in HuggingFace Spaces section to 'langflow run' for clarity and consistency
📝 docs(README.md): remove empty line in README.md file
2023-10-04 15:00:54 -03:00
Gabriel Luiz Freitas Almeida
358d595b36
Release beta 6 (#1012) 2023-10-04 14:52:42 -03:00
Gabriel Luiz Freitas Almeida
371d231bac 🔖 chore(pyproject.toml): bump version from 0.5.0b5 to 0.5.0b6 to reflect changes in the package 2023-10-04 14:51:47 -03:00
Gabriel Luiz Freitas Almeida
203929914e 🐛 fix(utils.py): remove unnecessary password verification when creating a superuser
💡 refactor(utils.py): simplify logic for creating a superuser by removing redundant password verification
2023-10-04 14:51:18 -03:00
Gabriel Luiz Freitas Almeida
eb1e742029
Change prefix of generated API key from "lf" to "sk"
🔄 refactor(api_key/crud.py): change prefix of generated API key from "lf" to "sk" for better readability and consistency
2023-10-04 13:54:45 -03:00
Gabriel Luiz Freitas Almeida
3403ee3c1c 🔄 refactor(api_key/crud.py): change prefix of generated API key from "lf" to "sk" for better readability and consistency 2023-10-04 13:54:09 -03:00
Gabriel Luiz Freitas Almeida
6c45b6393f
🐛 fix(endpoints.py): replace backend type string with backend name to improve readability and semantics (#1010) 2023-10-04 13:42:42 -03:00
Gabriel Luiz Freitas Almeida
6276e5c233 🔖 chore(pyproject.toml): bump version from 0.5.0b4 to 0.5.0b5 for package release 2023-10-04 13:42:20 -03:00
Gabriel Luiz Freitas Almeida
997639e325 🐛 fix(endpoints.py): replace backend type string with backend name to improve readability and semantics
 feat(anyio.py): add name attribute to AnyIOBackend class to identify the backend by name
 feat(celery.py): add name attribute to CeleryBackend class to identify the backend by name
 feat(manager.py): add backend_name property to TaskService class to get the name of the backend
2023-10-04 13:40:51 -03:00
Gabriel Luiz Freitas Almeida
9277950b07
chore(deps): bump postcss from 8.4.25 to 8.4.31 in /docs (#999) 2023-10-04 13:07:47 -03:00
Gabriel Luiz Freitas Almeida
a308585d01
fix callback use client_id (#993) 2023-10-04 12:53:55 -03:00
Gabriel Luiz Freitas Almeida
3604db72f4
Release Beta 5 (#1009) 2023-10-04 12:51:07 -03:00
Gabriel Luiz Freitas Almeida
16ffde61ec 🔖 chore(pyproject.toml): bump version from 0.5.0b3 to 0.5.0b4 for package release 2023-10-04 12:50:14 -03:00
Gabriel Luiz Freitas Almeida
62711a08cd 🔧 chore(server.py): configure gunicorn to use UvicornWorker as the worker class for improved performance and compatibility 2023-10-04 12:49:30 -03:00
Gabriel Luiz Freitas Almeida
f9d9adf60b 🐛 fix(manager.py): catch and log exceptions when tearing down services to prevent silent failures
🐛 fix(utils.py): catch and log exceptions when tearing down services and superuser to prevent silent failures
2023-10-04 12:49:10 -03:00
Gabriel Luiz Freitas Almeida
e72c04a94a 🐛 fix(__main__.py): set OBJC_DISABLE_INITIALIZE_FORK_SAFETY environment variable on MacOS to avoid error when running gunicorn
 feat(__main__.py): load environment variables from .env file to override existing environment variables
2023-10-04 12:48:30 -03:00
Gabriel Luiz Freitas Almeida
a185ee4f9b
Release 0.5.0 Beta 3 (#1008) 2023-10-04 10:39:09 -03:00
Gabriel Luiz Freitas Almeida
5f57d82004 🔖 chore(pyproject.toml): bump version from 0.5.0b2 to 0.5.0b3 for package release 2023-10-04 10:36:19 -03:00