-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feat/llm-ops-tracing
* origin/main: chore: set build system to Poetry and remove unnecessary settings with package mode disabled (#5263) feat: add `flask upgrade-db` command for running db upgrade with redis lock (#5333) fix: wrong token usage in iteration node for streaming result (#5336)
- Loading branch information
Showing
7 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,13 +38,14 @@ jobs: | |
- name: Install dependencies | ||
run: poetry install -C api | ||
|
||
- name: Set up Middleware | ||
- name: Set up Middlewares | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: | | ||
docker/docker-compose.middleware.yaml | ||
services: | | ||
db | ||
redis | ||
- name: Prepare configs | ||
run: | | ||
|
@@ -54,4 +55,4 @@ jobs: | |
- name: Run DB Migration | ||
run: | | ||
cd api | ||
poetry run python -m flask db upgrade | ||
poetry run python -m flask upgrade-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
Single-database configuration for Flask. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
[project] | ||
requires-python = ">=3.10" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.ruff] | ||
exclude = [ | ||
] | ||
|
@@ -78,17 +82,10 @@ MOCK_SWITCH = "true" | |
CODE_MAX_STRING_LENGTH = "80000" | ||
CODE_EXECUTION_ENDPOINT="http://127.0.0.1:8194" | ||
CODE_EXECUTION_API_KEY="dify-sandbox" | ||
|
||
FIRECRAWL_API_KEY = "fc-" | ||
|
||
|
||
|
||
[tool.poetry] | ||
name = "dify-api" | ||
version = "0.6.11" | ||
description = "" | ||
authors = ["Dify <[email protected]>"] | ||
readme = "README.md" | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
|