Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Langflow 1.0 #2303

Merged
merged 4,646 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4646 commits
Select commit Hold shift + click to select a range
1bf668a
kubernetes secret manager
zzzming Jun 21, 2024
17adc8b
fix unit test
zzzming Jun 22, 2024
b2c7140
update poetry.lock
zzzming Jun 22, 2024
20f7c67
mock kube-config
zzzming Jun 22, 2024
88a8294
♻️ (chat.py): remove unnecessary type hint for graph variable to impr…
ogabrielluiz Jun 22, 2024
5405809
🐛 (custom_component.py): fix an issue where the code was trying to ac…
ogabrielluiz Jun 22, 2024
cada4e8
refactor: Add optional type hint for extra parameter in add_result_pa…
ogabrielluiz Jun 22, 2024
e59966b
refactor: Update set_run_id method to accept only uuid.UUID or None a…
ogabrielluiz Jun 22, 2024
2fa4ebd
📝 (service.py): Add Optional import from typing to allow for Optional…
ogabrielluiz Jun 22, 2024
4175fc1
🔧 (Makefile): add 'update' target to run 'poetry update' command for …
ogabrielluiz Jun 22, 2024
b78e1dc
chore: Update lxml dependency to version 5.2.2
ogabrielluiz Jun 22, 2024
78fbbae
refactor: Remove unused socketio code from main.py
ogabrielluiz Jun 22, 2024
da5eec8
fix: add trace_name parameter to method call
italojohnny Jun 22, 2024
ca3e8de
feat: Add lockChat functionality to FlowStore
anovazzi1 Jun 19, 2024
34333e1
add stop button on building
anovazzi1 Jun 19, 2024
90f456b
add decorator to cancel disconnected requests
italojohnny Jun 20, 2024
95e7f38
decorate functions with decorator
italojohnny Jun 20, 2024
53bf1ce
add window.stop() to stop current requests
anovazzi1 Jun 20, 2024
1310621
update display of stop button
anovazzi1 Jun 20, 2024
2a88176
Discard old approach and implement a simple solution
italojohnny Jun 20, 2024
0687f95
Apply Prettier formatting
italojohnny Jun 20, 2024
55806ed
discard old approach
italojohnny Jun 21, 2024
91f4513
try a new approach to resolve request cancellation
italojohnny Jun 21, 2024
270d859
remove debug log line
italojohnny Jun 21, 2024
ab78d0a
<feat>: update vectorstores to new format:
berrytern Jun 21, 2024
795a2bd
<feat>: add Redis dependency
berrytern Jun 21, 2024
75cb932
<chore>: adjustments on redis vector store
berrytern Jun 21, 2024
8674f5d
<chore>: adjustments on mongo atlas vector store
berrytern Jun 21, 2024
5ba076c
chore: Adjust MongoDB Atlas Vector Store serialization
joaoguilhermeS Jun 22, 2024
d9c823e
Resolve merge conflicts in poetry.lock
joaoguilhermeS Jun 22, 2024
b7aa6c3
Resolve merge conflicts in poetry.lock
joaoguilhermeS Jun 22, 2024
9eccd0c
chore: Adjust MongoDB Atlas Vector Store parameters format
joaoguilhermeS Jun 22, 2024
e6e0649
chore: Adjust Faiss Vector Store parameters format
joaoguilhermeS Jun 22, 2024
1def0fa
chore: Updating poetry lock file
joaoguilhermeS Jun 22, 2024
e326d86
chore: Updating poetry lock file
joaoguilhermeS Jun 22, 2024
e2e1831
[Docs] - Multiple outputs (#2256)
mendonk Jun 22, 2024
1aa4612
[Docs] - Global and Project Settings (#2257)
mendonk Jun 22, 2024
fb8269c
fix: missing uuid import
vasconceloscezar Jun 22, 2024
ef6ae81
fix: upload files error
ygcedu Jun 17, 2024
45c5e39
fix: sidebar search input auto fill value when first loading
ygcedu Jun 17, 2024
6f0957a
updating inside text modal but with bugs
anovazzi1 Jun 21, 2024
7cf74e7
make onChange updatable
anovazzi1 Jun 21, 2024
eebaea3
fix refresh on App
anovazzi1 Jun 21, 2024
370f2df
refactor: Update TextModal to use TextEditorArea for text input
anovazzi1 Jun 21, 2024
cd02755
refactor: Update TextModal to use TextEditorArea for text input
anovazzi1 Jun 21, 2024
73c43ee
refactor: Update editable prop in MessagesPage component
anovazzi1 Jun 21, 2024
8e0b6cd
Apply Prettier formatting
anovazzi1 Jun 21, 2024
0f615e0
Apply Prettier formatting
ogabrielluiz Jun 22, 2024
0999ce5
chore: Remove deprecated vector search components
ogabrielluiz Jun 22, 2024
4b495fc
refactor: readds partition_file_to_data
ogabrielluiz Jun 22, 2024
6e88eab
chore: Remove unused vector search component and update vector store …
ogabrielluiz Jun 22, 2024
84d4772
chore: Adjust FAISS Vector Store parameters format
ogabrielluiz Jun 22, 2024
789bdbb
chore: Convert result to string in LLMCheckerChain, LLMMathChain, Ret…
ogabrielluiz Jun 22, 2024
cdd3023
chore: Refactor MergeDataComponent to remove unused code
ogabrielluiz Jun 22, 2024
8d25605
chore: Build vector store in test_astra_setup
ogabrielluiz Jun 22, 2024
2cecfb0
chore: Update RecursiveCharacterTextSplitterComponent method name to …
ogabrielluiz Jun 22, 2024
7331cb1
chore: Refactor TextComponent to remove unused code and improve reada…
ogabrielluiz Jun 22, 2024
7b93eb1
chore: Update langflow template field base.py
ogabrielluiz Jun 22, 2024
1345059
chore: Update astrapy to version 1.3.0 and filelock to version 3.15.4
ogabrielluiz Jun 22, 2024
67802d7
chore: Remove unused import from MongoDBAtlasVector.py
ogabrielluiz Jun 22, 2024
6b7dcaa
refactor: remove model_specs
ogabrielluiz Jun 22, 2024
38ab89d
chore: Update .gitignore to exclude database files
ogabrielluiz Jun 22, 2024
295f2c6
Refactor set_user_agent method in base.py to use proper capitalization
ogabrielluiz Jun 22, 2024
74fe785
fix: make optional import happen only if used
ogabrielluiz Jun 22, 2024
15ce43a
chore: separated Variable services
ogabrielluiz Jun 22, 2024
cda1f63
chore: Increase timeout for server startup in pre-release.yml
ogabrielluiz Jun 22, 2024
c3d912f
chore: Update import statement in types.py
ogabrielluiz Jun 22, 2024
5ddb866
chore: Remove unnecessary call to build_frontend in Makefile
ogabrielluiz Jun 22, 2024
6c37f51
docs(contributing.md): update contribution guidelines
ogabrielluiz Jun 22, 2024
9b4cca5
fix: ruff checker on github format
joaoguilhermeS Jun 22, 2024
9cc6b2f
chore: Updating AstraDB parameters format
joaoguilhermeS Jun 22, 2024
49ca6c5
chore: Updating Cassandra Vector Store parameters format
joaoguilhermeS Jun 22, 2024
a97b5ee
chore: Updating Courchbase Vector Store parameters format
joaoguilhermeS Jun 22, 2024
be9539f
chore: Updating PGVector Vector Store parameters format
joaoguilhermeS Jun 22, 2024
9021974
chore: Updating Redis Vector Store parameters format
joaoguilhermeS Jun 22, 2024
02c8251
chore: Updating Supabase Vector Store parameters format
joaoguilhermeS Jun 22, 2024
23eaccd
chore: Updating Upstash Vector Store parameters format
joaoguilhermeS Jun 22, 2024
43a781b
chore: Updating Vectara Vector Store parameters format
joaoguilhermeS Jun 22, 2024
98497a3
chore: Updating Weaviate Vector Store parameters format
joaoguilhermeS Jun 22, 2024
4ec69a7
chore: Updating poetry lock file
joaoguilhermeS Jun 22, 2024
55c6168
fix: ruff checker on github format
joaoguilhermeS Jun 22, 2024
8f051d0
refactor: Update prompt validation process in validate.py
ogabrielluiz Jun 22, 2024
f4517b2
refactor: remove Prompt from ignored components list
ogabrielluiz Jun 22, 2024
8f22325
refactor: Handle error updating Component code in GenericNode
ogabrielluiz Jun 22, 2024
63cb3ba
refactor: move prompt utils to template module
ogabrielluiz Jun 22, 2024
95d6666
refactor: Update post_code_validation method in Component class
ogabrielluiz Jun 22, 2024
69b756c
refactor: Update build_custom_component_template return type
ogabrielluiz Jun 22, 2024
a9040a4
refactor: Rename post_code_validation method to post_code_processing
ogabrielluiz Jun 22, 2024
55f3ceb
refactor: Update PromptComponent post_code_processing method
ogabrielluiz Jun 22, 2024
86f8b3e
Apply Prettier formatting
ogabrielluiz Jun 22, 2024
a9b2f5f
refactor: Remove unused import and simplify post_code_processing method
ogabrielluiz Jun 23, 2024
6794a55
refactor: Update Makefile to ignore integration tests in unit_tests
ogabrielluiz Jun 23, 2024
2f7d24f
fix: Update ToolCallingAgentComponent
rodrigosnader Jun 23, 2024
0253b15
refactor: Update AstraVectorStoreComponent display name
rodrigosnader Jun 23, 2024
b1e7a8b
prevent race condiction on drop_and_create_table_if_schema_mismatch
zzzming Jun 23, 2024
22839ee
refactor: Update post_code_processing method in CustomComponent class
ogabrielluiz Jun 23, 2024
ab9083d
refactor: Update ToolCallingAgentComponent description
ogabrielluiz Jun 23, 2024
5e33628
chore: Update post_process_raw function in artifact.py
ogabrielluiz Jun 22, 2024
e27583c
Refactor set_user_agent method in base.py for proper capitalization
ogabrielluiz Jun 22, 2024
80d0b3e
Refactor Retriever class in constants.py for better organization
ogabrielluiz Jun 22, 2024
184a6d1
chore: Add Cohere Rerank component for document reranking
ogabrielluiz Jun 22, 2024
cdfed9c
Refactor LCVectorStoreComponent to set status when building retriever
ogabrielluiz Jun 22, 2024
dc259c7
Refactor create_or_update_starter_projects function in setup.py for b…
ogabrielluiz Jun 22, 2024
659793f
fix: correct argument for cohere_api_key
ogabrielluiz Jun 23, 2024
4389467
Refactor constants.py to use VectorStoreRetriever in Retriever typevar
ogabrielluiz Jun 23, 2024
55413cb
Fix - Docs Footer and Header (#2274)
lucaseduoli Jun 23, 2024
6171f3b
update basic prompt example
italojohnny Jun 23, 2024
e08db72
Refactor setup.py to remove call to update_new_output function
ogabrielluiz Jun 23, 2024
67764c0
Refactor constants.py to add Message type alias
ogabrielluiz Jun 23, 2024
d1eed09
Fix linting errors in ToolCallingAgentComponent
ogabrielluiz Jun 23, 2024
cdbf1a6
refactor: Add getJsApiCode utility function for generating JavaScript…
ogabrielluiz Jun 23, 2024
590ab51
refactor: Update CodeTabsComponent to handle additional tabs
ogabrielluiz Jun 23, 2024
c06227e
refactor: Simplify getJsApiCode utility function
ogabrielluiz Jun 23, 2024
2ae5f3b
refactor: Remove unused import in component.py
ogabrielluiz Jun 23, 2024
00ec361
Bugfix: Flows losing reference of folder when renaming current folder…
Cristhianzl Jun 23, 2024
4dd64e4
💄 (paginatorComponent): remove fixed height and width from paginator …
Cristhianzl Jun 23, 2024
d4080b8
💄 (paginatorComponent): update button styles to include fixed height …
Cristhianzl Jun 23, 2024
4d7cee2
refactor: Skip deactivated files in directory_reader.py
ogabrielluiz Jun 23, 2024
93a2164
refactor: rename TextInput to MessageTextInput
ogabrielluiz Jun 23, 2024
d1705a7
refactor: Rename TextInput to MessageTextInput in starter_projects
ogabrielluiz Jun 23, 2024
c2b2375
Refactor field_typing module to remove Text type alias
ogabrielluiz Jun 23, 2024
7642969
refactor: Update build_config parameter type in AgentComponent
ogabrielluiz Jun 23, 2024
c6ad9a5
refactor: Update build_config parameter type in AgentComponent
ogabrielluiz Jun 23, 2024
6b1bdb6
refactor: Remove unused import in folders.py
ogabrielluiz Jun 23, 2024
83631d5
fix: correct import in json projects
ogabrielluiz Jun 23, 2024
a8c4745
Removed markdown to not cause problems
lucaseduoli Jun 23, 2024
1e16522
Apply Prettier formatting
lucaseduoli Jun 23, 2024
b42d340
Changed naming of some projects
lucaseduoli Jun 23, 2024
d07c2a6
Apply Prettier formatting
lucaseduoli Jun 23, 2024
5aa6450
🔧 (config.yaml): Remove langflow config file as it is no longer neede…
ogabrielluiz Jun 23, 2024
edc9671
refactor: Add CustomComponentResponse model and update custom_compone…
ogabrielluiz Jun 23, 2024
13d53a8
refactor: Update GenericNode and related hooks to handle component type
ogabrielluiz Jun 23, 2024
576795a
fix regex validation for url
italojohnny Jun 23, 2024
2dca626
Apply Ruff formatting
italojohnny Jun 23, 2024
54d5ba7
fix: corret imports
ogabrielluiz Jun 24, 2024
a4c9ada
refactor: Handle exceptions and end traces in Graph class
ogabrielluiz Jun 24, 2024
152f025
refactor: Stop tracing service gracefully
ogabrielluiz Jun 24, 2024
61c3491
refactor: update dict to model_dump
ogabrielluiz Jun 24, 2024
0f58109
chore: Update package versions in pyproject.toml files
ogabrielluiz Jun 24, 2024
10eaa77
refactor: Update get_version endpoint to use get_version_info utility…
ogabrielluiz Jun 23, 2024
d7b1028
✨ (langflow/__main__.py): introduce setting "backend_only" in setting…
ogabrielluiz Jun 23, 2024
597d133
📝 (base.py): update comments for cache_type and variable_store attrib…
ogabrielluiz Jun 23, 2024
609b99e
feat: Add TelemetryService and TelemetryServiceFactory
ogabrielluiz Jun 23, 2024
f29dcb9
feat: Add TelemetryService and start telemetry in main.py
ogabrielluiz Jun 23, 2024
d08b9bf
feat: Add arch and autoLogin fields to VersionPayload
ogabrielluiz Jun 23, 2024
94be16e
feat: Add datetime tracking to TelemetryService shutdown
ogabrielluiz Jun 23, 2024
35f2e62
feat: Add TelemetryService schema and service
ogabrielluiz Jun 23, 2024
fdee73f
feat: Add TelemetryService and log package run time
ogabrielluiz Jun 23, 2024
59fae08
docs: add docs for telemetry
ogabrielluiz Jun 23, 2024
6577a91
✨ (chat.py): Add telemetry service to log playground and component da…
ogabrielluiz Jun 23, 2024
56290ce
🔧 (endpoints.py): remove duplicate declaration of background_tasks pa…
ogabrielluiz Jun 23, 2024
b5a0a30
feat: Add components_count variable to retrieve_vertices_order function
ogabrielluiz Jun 23, 2024
e2b56dd
feat: Update PlaygroundPayload componentCount field to be nullable
ogabrielluiz Jun 23, 2024
ea28e8b
feat: Update welcome panel with telemetry information
ogabrielluiz Jun 23, 2024
725a3a0
feat: Enhance telemetry documentation
ogabrielluiz Jun 23, 2024
870193d
🐛 (sideBarFolderButtons): prevent unnecessary folder name updates on …
Cristhianzl Jun 24, 2024
6201035
update getHealth function to work with stop button
anovazzi1 Jun 22, 2024
f6cc610
Apply Prettier formatting
anovazzi1 Jun 22, 2024
77b7d8d
refactor: Update Graph.from_payload to include flow name
ogabrielluiz Jun 24, 2024
2b58720
refactor: Update pyproject.toml version to 0.0.75
ogabrielluiz Jun 24, 2024
2fced3b
docs: add kubernetes deployment
nicoloboschi Jun 20, 2024
c0a4a9d
docs: add kubernetes deployment
nicoloboschi Jun 20, 2024
74eaf07
docs: add kubernetes deployment
nicoloboschi Jun 20, 2024
26a028d
fix: Update MistralModel.py with default values for inputs
vasconceloscezar Jun 24, 2024
26e68cd
Apply Ruff formatting
vasconceloscezar Jun 24, 2024
48fd053
components: add astra vectorize
nicoloboschi Jun 21, 2024
c8fc1e6
fix
nicoloboschi Jun 21, 2024
8f31291
fixes and refactory
nicoloboschi Jun 24, 2024
6d92b38
fixes and refactory
nicoloboschi Jun 24, 2024
554aed4
fixes and refactory
nicoloboschi Jun 24, 2024
a158082
use MessageTextInput
nicoloboschi Jun 24, 2024
de2a95d
chore: Update docker-build.yml to include pre_release option
ogabrielluiz Jun 24, 2024
7c35e29
chore: Update docker-build.yml to include pre_release option and base…
ogabrielluiz Jun 24, 2024
f4ddc60
chore: Update docker-build.yml to include pre_release option and base…
ogabrielluiz Jun 24, 2024
07de1d6
add warning to components with old codes
anovazzi1 Jun 23, 2024
696c079
update liteLLM icon
anovazzi1 Jun 23, 2024
b858158
Apply Prettier formatting
anovazzi1 Jun 23, 2024
399a651
feat: Update sidebar link to Langflow workspace
rodrigosnader Jun 23, 2024
4243bf7
remove-extra-install-issues-page
mendonk Jun 23, 2024
c5fe03f
topnav
mendonk Jun 23, 2024
a9182be
bullets
mendonk Jun 23, 2024
8401f18
collections-and-projetcs
mendonk Jun 23, 2024
3980cf0
folders
mendonk Jun 23, 2024
054bf25
playground
mendonk Jun 23, 2024
f4f5d2f
playgounrd
mendonk Jun 23, 2024
5d786aa
strip-v10-alpha
mendonk Jun 23, 2024
85c1d79
memories
mendonk Jun 23, 2024
6c65cc3
logs
mendonk Jun 23, 2024
d8169ee
playground
mendonk Jun 23, 2024
0f3a79b
custom-component
mendonk Jun 23, 2024
7f59a48
parentheses
mendonk Jun 23, 2024
add8fc7
docs: Rewrite Getting Started pages
rodrigosnader Jun 24, 2024
147f075
docs: Add LangSmith docs
rodrigosnader Jun 24, 2024
4e01178
refactor: remove some preview references
rodrigosnader Jun 24, 2024
285355c
- fix wrong comments
carlosrcoelho Jun 24, 2024
b2224a3
remove wrong regex
rodrigosnader Jun 24, 2024
5457af1
Changed possible instalation issues' location
lucaseduoli Jun 24, 2024
21fd151
Removed top bar
lucaseduoli Jun 24, 2024
9b88eab
Added warning of outdated information to all components
lucaseduoli Jun 24, 2024
0ddb116
rearrange and remove components
rodrigosnader Jun 23, 2024
4876f18
refactor: Remove unused import in IDGenerator.py
rodrigosnader Jun 23, 2024
6ceb19b
feat: Add beta label to Experimental parent disclosure title
anovazzi1 Jun 23, 2024
4bd09b9
Apply Prettier formatting
anovazzi1 Jun 23, 2024
e71a634
added beta foreground soft color
anovazzi1 Jun 23, 2024
55e4fe9
fix code
italojohnny Jun 23, 2024
0f5b0c0
disable component litellm
italojohnny Jun 24, 2024
9a76bcb
move components from helpers to prototypes
italojohnny Jun 24, 2024
3f22a78
Fixed beta
lucaseduoli Jun 24, 2024
321ef41
Apply Prettier formatting
ogabrielluiz Jun 24, 2024
70ffff1
refactor: Update ToolCallingAgent.py imports and type annotations
ogabrielluiz Jun 24, 2024
783475e
refactor: Update VectaraVectorStoreComponent to handle embedding inpu…
vasconceloscezar Jun 24, 2024
d11e7c6
fix: run ruff
ogabrielluiz Jun 24, 2024
6ec39c8
fix erros reported by mypy
italojohnny Jun 24, 2024
c63bef8
remove comment
ogabrielluiz Jun 24, 2024
d18ac62
chore: Update imports and remove unused components in deactivated and…
ogabrielluiz Jun 24, 2024
914e741
fix: imports from TextInput to MessageTextInput
ogabrielluiz Jun 24, 2024
8c7063e
refactor: Update VectaraVectorStoreComponent to handle embedding inpu…
ogabrielluiz Jun 24, 2024
2530a25
set default temperature value
italojohnny Jun 24, 2024
5505d3f
adjust model temperature value
italojohnny Jun 24, 2024
0c75ba4
✨ (SplitText.py): Add MessageTextInput import to support handling mes…
ogabrielluiz Jun 24, 2024
5c1ac1b
refactor: Update imports to use MessageTextInput instead of TextInput
ogabrielluiz Jun 24, 2024
6f836c3
style: run ruff
ogabrielluiz Jun 24, 2024
ef1e70d
style: run prettier
ogabrielluiz Jun 24, 2024
47940c8
refactor: Update ToolCallingAgentComponent input_dict type to use Dic…
ogabrielluiz Jun 24, 2024
0268c7c
refactor: remove unused tests
ogabrielluiz Jun 24, 2024
7f94f5f
Update project documentation URLs to use the new domain
ogabrielluiz Jun 24, 2024
5c09ff4
refactor: Update LangSmithTracer initialization error handling
ogabrielluiz Jun 24, 2024
1e12f05
Fix unique constraints for id column (#1584)
ogabrielluiz Mar 29, 2024
abbc009
Added GTAG for Google Analytics
lucaseduoli Apr 3, 2024
537cf93
Add logger import and fix error handling during upgrade in alembic sc…
ogabrielluiz Apr 9, 2024
243a4e7
Update column types and bump version (#1653)
ogabrielluiz Apr 9, 2024
c97d0d6
Fix unique constraints for id column and update API key creation (#1764)
ogabrielluiz Apr 22, 2024
68e6300
Fix bugs and make improvements (#1794)
ogabrielluiz Apr 29, 2024
57df2a0
Fixes Pinecone implementation (#1856)
ogabrielluiz May 7, 2024
d0e84c1
Fixed starter examples
lucaseduoli Jun 24, 2024
4cc7ae1
Fixed starter examples
lucaseduoli Jun 24, 2024
723d854
Fixed starter examples
lucaseduoli Jun 24, 2024
39320ae
refactor: Update nodeColors and nodeNames in styleUtils.ts for consis…
ogabrielluiz Jun 24, 2024
bb785c7
fix: remove prompt chaining project
ogabrielluiz Jun 24, 2024
c55bbfd
Fixed examples to use gpt 4
lucaseduoli Jun 24, 2024
4e26b46
FIxed basic prompting
lucaseduoli Jun 24, 2024
184f252
refactor: make rag example be two flows again
ogabrielluiz Jun 24, 2024
23bbaf9
Fix unique constraints for id column (#1584)
ogabrielluiz Mar 29, 2024
4b72a7c
Fix unique constraints for id column and update API key creation (#1764)
ogabrielluiz Apr 22, 2024
da63ee9
Fix bugs and make improvements (#1794)
ogabrielluiz Apr 29, 2024
b3b68c3
Fixes Pinecone implementation (#1856)
ogabrielluiz May 7, 2024
07cc7b3
chore: remove merge artifact
ogabrielluiz Jun 24, 2024
ceaff46
Merge remote-tracking branch 'origin/main' into dev
ogabrielluiz Jun 24, 2024
a539c90
chore: fix types in Alembic migration script
ogabrielluiz Jun 24, 2024
24d9e86
chore: update package versions in pyproject.toml files
ogabrielluiz Jun 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Langflow Dev Container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
"image": "mcr.microsoft.com/devcontainers/python:3.10",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
Expand Down
7 changes: 0 additions & 7 deletions .dockerignore

This file was deleted.

29 changes: 28 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
# Do not commit .env file to git
# Do not change .env.example file

# Config directory
# Directory where files, logs and database will be stored
# Example: LANGFLOW_CONFIG_DIR=~/.langflow
LANGFLOW_CONFIG_DIR=

# Save database in the config directory
# Values: true, false
# If false, the database will be saved in Langflow's root directory
# This means that the database will be deleted when Langflow is uninstalled
# and that the database will not be shared between different virtual environments
# Example: LANGFLOW_SAVE_DB_IN_CONFIG_DIR=true
LANGFLOW_SAVE_DB_IN_CONFIG_DIR=

# Database URL
# Postgres example: LANGFLOW_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langflow
# SQLite example:
Expand Down Expand Up @@ -56,6 +69,12 @@ LANGFLOW_REMOVE_API_KEYS=
# LANGFLOW_REDIS_CACHE_EXPIRE (default: 3600)
LANGFLOW_CACHE_TYPE=

# Set AUTO_LOGIN to false if you want to disable auto login
# and use the login form to login. LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD
# must be set if AUTO_LOGIN is set to false
# Values: true, false
LANGFLOW_AUTO_LOGIN=

# Superuser username
# Example: LANGFLOW_SUPERUSER=admin
LANGFLOW_SUPERUSER=
Expand All @@ -64,6 +83,10 @@ LANGFLOW_SUPERUSER=
# Example: LANGFLOW_SUPERUSER_PASSWORD=123456
LANGFLOW_SUPERUSER_PASSWORD=

# Should store environment variables in the database
# Values: true, false
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=

# STORE_URL
# Example: LANGFLOW_STORE_URL=https://api.langflow.store
# LANGFLOW_STORE_URL=
Expand All @@ -74,4 +97,8 @@ LANGFLOW_SUPERUSER_PASSWORD=

# LIKE_WEBHOOK_URL
#
# LANGFLOW_LIKE_WEBHOOK_URL=
# LANGFLOW_LIKE_WEBHOOK_URL=

# Value must finish with slash /
#BACKEND_URL=http://localhost:7860/
BACKEND_URL=
90 changes: 90 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"react",
"import-helpers",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.node.json",
"./tsconfig.json"
],
"extraFileExtensions:": [
".mdx"
],
"extensions:": [
".mdx"
]
},
"env": {
"browser": true,
"es2021": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-console": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"complexity": [
"error",
{
"max": 15
}
],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"no-dupe-keys": "error",
"no-invalid-regexp": "error",
"no-undef": "error",
"no-return-assign": "error",
"no-redeclare": "error",
"no-empty": "error",
"no-await-in-loop": "error",
"react/react-in-jsx-scope": 0,
"node/exports-style": [
"error",
"module.exports"
],
"node/file-extension-in-import": [
"error",
"always"
],
"node/prefer-global/buffer": [
"error",
"always"
],
"node/prefer-global/console": [
"error",
"always"
],
"node/prefer-global/process": [
"error",
"always"
],
"node/prefer-global/url-search-params": [
"error",
"always"
],
"node/prefer-global/url": [
"error",
"always"
],
"node/prefer-promises/dns": "error",
"node/prefer-promises/fs": "error"
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ Dockerfile text
*.mp4 binary
*.svg binary
*.csv binary

99 changes: 99 additions & 0 deletions .github/actions/poetry_caching/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# An action for setting up poetry install with caching.
# Using a custom action since the default action does not
# take poetry install groups into account.
# Action code from:
# https://github.com/actions/setup-python/issues/505#issuecomment-1273013236
# Copy of https://github.com/langchain-ai/langchain/blob/2f8dd1a1619f25daa4737df4d378b1acd6ff83c4/.github/actions/poetry_setup/action.yml
name: poetry-install-with-caching
description: Poetry install with support for caching of dependency groups.

inputs:
python-version:
description: Python version, supporting MAJOR.MINOR only
required: true

poetry-version:
description: Poetry version
required: true

cache-key:
description: Cache key to use for manual handling of caching
required: true

working-directory:
description: Directory whose poetry.lock file should be cached
required: true

runs:
using: composite
steps:
- uses: actions/setup-python@v5
name: Setup python ${{ inputs.python-version }}
id: setup-python
with:
python-version: ${{ inputs.python-version }}

- uses: actions/cache@v4
id: cache-bin-poetry
name: Cache Poetry binary - Python ${{ inputs.python-version }}
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "1"
with:
path: |
/opt/pipx/venvs/poetry
# This step caches the poetry installation, so make sure it's keyed on the poetry version as well.
key: bin-poetry-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-${{ inputs.poetry-version }}

- name: Refresh shell hashtable and fixup softlinks
if: steps.cache-bin-poetry.outputs.cache-hit == 'true'
shell: bash
env:
POETRY_VERSION: ${{ inputs.poetry-version }}
PYTHON_VERSION: ${{ inputs.python-version }}
run: |
set -eux

# Refresh the shell hashtable, to ensure correct `which` output.
hash -r

# `actions/cache@v3` doesn't always seem able to correctly unpack softlinks.
# Delete and recreate the softlinks pipx expects to have.
rm /opt/pipx/venvs/poetry/bin/python
cd /opt/pipx/venvs/poetry/bin
ln -s "$(which "python$PYTHON_VERSION")" python
chmod +x python
cd /opt/pipx_bin/
ln -s /opt/pipx/venvs/poetry/bin/poetry poetry
chmod +x poetry

# Ensure everything got set up correctly.
/opt/pipx/venvs/poetry/bin/python --version
/opt/pipx_bin/poetry --version

- name: Install poetry
if: steps.cache-bin-poetry.outputs.cache-hit != 'true'
shell: bash
env:
POETRY_VERSION: ${{ inputs.poetry-version || env.POETRY_VERSION }}
PYTHON_VERSION: ${{ inputs.python-version }}
# Install poetry using the python version installed by setup-python step.
run: |
pipx install "poetry==$POETRY_VERSION" --python '${{ steps.setup-python.outputs.python-path }}' --verbose
pipx ensurepath
# Ensure the poetry binary is available in the PATH.
# Test that the poetry binary is available.
poetry --version

- name: Restore pip and poetry cached dependencies
uses: actions/cache@v4
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "4"
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}
with:
path: |
~/.cache/pip
~/.cache/pypoetry/virtualenvs
~/.cache/pypoetry/cache
~/.cache/pypoetry/artifacts
${{ env.WORKDIR }}/.venv
key: py-deps-${{ runner.os }}-${{ runner.arch }}-py-${{ inputs.python-version }}-poetry-${{ inputs.poetry-version }}-${{ inputs.cache-key }}-${{ hashFiles(format('{0}/**/poetry.lock', env.WORKDIR)) }}
44 changes: 0 additions & 44 deletions .github/workflows/ci.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: "Version to release"
required: true
type: string
release_type:
description: "Type of release (base or main)"
required: true
type: choice
options:
- base
- main

env:
POETRY_VERSION: "1.8.2"
jobs:
release:
name: Build Langflow
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check-version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry"
- name: Build project for distribution
run: |
if [ "${{ inputs.release_type }}" == "base" ]; then
make build base=true
else
make build main=true
fi
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dist${{ inputs.release_type }}
path: ${{ inputs.release_type == 'base' && 'src/backend/base/dist' || 'dist' }}
create_release:
name: Create Release Job
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/download-artifact@v4
with:
name: dist${{ inputs.release_type }}
path: dist
- name: Create Release Notes
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
prerelease: true
tag: v${{ inputs.version }}
commit: dev
2 changes: 1 addition & 1 deletion .github/workflows/deploy_gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
Expand Down
Loading
Loading