Commit graph

3,914 commits

Author SHA1 Message Date
anovazzi1
233cec6f0d fix(GenericNode): import getFieldTitle function from utils/utils to fix compilation error
fix(GenericNode): replace calls to toTitleCase with getFieldTitle function to improve code readability and maintainability
fix(GenericNode): replace calls to getFieldTitle with getFieldTitle function to improve code readability and maintainability
fix(reactflowUtils): import getFieldTitle function from utils/utils to fix compilation error
fix(reactflowUtils): replace calls to toTitleCase with getFieldTitle function to improve code readability and maintainability
fix(reactflowUtils): replace calls to getFieldTitle with getFieldTitle function to improve code readability and maintainability
fix(utils): add getFieldTitle function to handle getting the display name or name of a template field
2023-10-16 15:03:48 -03:00
anovazzi1
c81a156fcd fix bug for capital case errors 2023-10-16 12:44:35 -03:00
Lucas Oliveira
8a5a6bc492 Added theme option to view page 2023-10-15 12:23:11 -03:00
Gabriel Luiz Freitas Almeida
7ffe366fb8 🐛 fix(manager.py): fix incorrect check for alembic initialization and add proper error handling
 feat(manager.py): add support for initializing alembic if not already initialized before running migrations
2023-10-10 15:01:48 -03:00
Gabriel Luiz Freitas Almeida
9697e06ec9 🐛 fix(change_columns_to_be_nullable.py): add exception handling and rollback in case of SQLAlchemyError to prevent data loss during migration 2023-10-10 15:00:13 -03:00
anovazzi1
0718819a10 fix invalid json strings 2023-10-09 21:26:40 -03:00
anovazzi1
4a8caa609f remove console.log 2023-10-09 21:15:15 -03:00
anovazzi1
94b3aa88b9 add suport to drop collections 2023-10-09 21:13:42 -03:00
igorrCarvalho
e1107ffdf7 Remove blank space 2023-10-09 18:20:23 -03:00
igorrCarvalho
3fd7a3e4cd Fix: Add dict on verification to avoid unknown edge 2023-10-09 18:08:33 -03:00
igorrCarvalho
8e5dd6b0e3 Fix: Add onclick on minimized node to make filter edges work 2023-10-09 17:14:39 -03:00
anovazzi1
56c2be5867 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:04:21 -03:00
anovazzi1
03d12b53cd 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 17:55:44 -03:00
Gabriel Luiz Freitas Almeida
57b9ab6843 🐛 fix(manager.py): change try-except block to if-elif block to improve code readability and maintainability 2023-10-05 17:41:10 -03:00
Gabriel Luiz Freitas Almeida
df8dd44a16 🐛 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 17:39:56 -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
358d595b36
Release beta 6 (#1012) 2023-10-04 14:52:42 -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
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
a308585d01
fix callback use client_id (#993) 2023-10-04 12:53:55 -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
f229524cf5 🐛 fix(__main__.py): change default number of worker processes from 2 to 1 to improve performance 2023-10-04 10:34:37 -03:00
Gabriel Luiz Freitas Almeida
0a61f389c8 🔧 chore(manager.py): remove unused initialize_services function
🔧 chore(utils.py): refactor initialize_services function to use a list of factory and dependencies for better readability and maintainability
2023-10-04 10:20:47 -03:00
Gabriel Luiz Freitas Almeida
a6b30e1b8b 🔧 chore(alembic): change columns to be nullable in migration script
🔧 chore(api_key.py): make last_used_at field nullable in ApiKeyBase model

🔧 chore(flow.py): make data field nullable in FlowBase model

🔧 chore(user.py): make profile_image field nullable in User model
2023-10-04 10:20:32 -03:00
Gabriel Luiz Freitas Almeida
78c54d6736 🐛 fix(manager.py): handle table creation errors and log warnings for existing tables
 feat(manager.py): improve table creation process by checking if tables already exist before creating them
2023-10-04 09:03:03 -03:00
Gabriel Luiz Freitas Almeida
3724876620 🐛 fix(utils.py): remove unnecessary check for None value in handle_partial_variables function
🔀 refactor(utils.py): simplify dictionary comprehension in handle_partial_variables function
2023-10-03 22:14:32 -03:00
Gabriel Luiz Freitas Almeida
d01d8c2945 Merge branch 'fix_tests' into session_id 2023-10-03 21:43:51 -03:00
Gabriel Luiz Freitas Almeida
f25e390e8c 🐛 fix(utils.py): handle_partial_variables now filters out partial variables with None values to prevent errors in LangChain 2023-10-03 21:33:45 -03:00
Gabriel Luiz Freitas Almeida
2b7062a3ec 🔧 chore(chat.py): refactor error logging in try_running_celery_task function to improve readability and reduce noise
🐛 fix(chat.py): change error logging level from error to debug in try_running_celery_task function to reduce noise
2023-10-03 21:32:25 -03:00
anovazzi1
c67d7da5e2 fix(typesContext.tsx): import Edge from reactflow to fix missing type declaration
feat(typesContext.tsx): add deleteEdge function to typesContext to delete edges from reactFlowInstance
fix(PageComponent/index.tsx): add deleteEdge function to delete selected edges from typesContext
2023-10-03 19:46:22 -03:00
Gabriel Luiz Freitas Almeida
9c70a3fe20 🐛 fix(manager.py): add inspector to check if table "flow" exists before creating tables again
The change was made to fix a bug where the tables were being recreated even if they already existed. By adding an inspector to check if the table "flow" exists before recreating the tables, we can prevent unnecessary table creation and improve performance.
2023-10-03 18:13:41 -03:00
Gabriel Luiz Freitas Almeida
6618efc409 🔨 refactor(base.py): remove unused import from langchain module in base.py
🔨 refactor(base.py): remove unused import from langchain.utilities module in base.py
🔨 refactor(base.py): remove unused import from langchain.requests module in base.py
🔨 refactor(base.py): remove unused import from langchain.sql_database module in base.py
2023-10-03 17:59:48 -03:00
Gabriel Luiz Freitas Almeida
dc559e61ae 🐛 fix(manager.py): refactor create_db_and_tables method to check if database and tables already exist before creating them 2023-10-03 17:39:50 -03:00
Gabriel Luiz Freitas Almeida
a8f444656b
Release 0.5.0a5 (#1000) 2023-10-03 17:09:51 -03:00
Gabriel Luiz Freitas Almeida
ad406541f2 🐛 fix(manager.py): improve readability by splitting a long line into multiple lines
🐛 fix(utils.py): add comment to explain the reason for the check
2023-10-03 17:08:38 -03:00
Gabriel Luiz Freitas Almeida
65c6516575 🔀 chore(constants.py): update import statements to use the correct module paths for PromptTemplate
🔀 chore(utils.py): update import statements to use the correct module paths for PromptTemplate
🔀 chore(test_custom_component.py): update import statements to use the correct module paths for PromptTemplate
2023-10-03 17:05:59 -03:00
Gabriel Luiz Freitas Almeida
f7884af3af 🐛 fix(manager.py): migrate flows to default superuser if they don't have a user id associated with them when auto_login is enabled
🐛 fix(utils.py): handle case when superuser already exists during creation to prevent UNIQUE constraint violation
2023-10-03 17:05:46 -03:00
anovazzi1
65d3b2113b fix(applies.css): add max-w-full class to .api-modal-tabs to ensure it takes up the full width on smaller screens 2023-10-03 16:32:09 -03:00