-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/main' into feat/knowledge-admin-role
* refs/heads/main: (36 commits) feat: add claude3 function calling (#5889) refactor: Create a `dify_config` with Pydantic. (#5938) fix: zhipuai pytest correction (#5934) docs(api/core/tools/docs/en_US/tool_scale_out.md): Format by markdownlint. (#5903) chore: remove dify SaaS URL in default configs (#5888) feat: pr template (#5886) fix bug : TencentVectorDBConfig Add TENCENT_VECTOR_DB_DATABASE (#5879) refactor(api/core/app/apps/base_app_generator.py): improve input validation and sanitization in BaseAppGenerator (#5866) chore: click area that trigger showing tracing config is too large (#5878) Fix/remove tsne position test (#5858) Fix/docker env namings (#5857) doc: docker-compose won't start due to wrong README (#5859) fix:retieval setting document link 404 (#5861) chore:remove .env.example duplicate key (#5853) fix: not show opening question if the opening message is empty (#5856) fix: react.js error 185 maximum update depth exceeded in streaming responses during conversation (#5849) Ensure *.sh are LF-style, so that they can be used directly by Docker for Windows (#5793) feat: add export permission (#5841) feat: update LangfuseConfig host config (#5846) fix:unable to select workplace at the bottom (#5785) ...
- Loading branch information
Showing
91 changed files
with
1,406 additions
and
379 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Ensure that .sh scripts use LF as line separator, even if they are checked out | ||
# to Windows(NTFS) file-system, by a user of Docker for Window. | ||
# These .sh scripts will be run from the Container after `docker compose up -d`. | ||
# If they appear to be CRLF style, Dash from the Container will fail to execute | ||
# them. | ||
|
||
*.sh text eol=lf |
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,32 +1,34 @@ | ||
# Checklist: | ||
|
||
> [!IMPORTANT] | ||
> Please review the checklist below before submitting your pull request. | ||
- [ ] Please open an issue before creating a PR or link to an existing issue | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods | ||
|
||
# Description | ||
|
||
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. | ||
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. Close issue syntax: `Fixes #<issue number>`, see [documentation](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) for more details. | ||
|
||
Fixes # (issue) | ||
Fixes | ||
|
||
## Type of Change | ||
|
||
Please delete options that are not relevant. | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) | ||
- [ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement | ||
- [ ] Dependency upgrade | ||
|
||
# How Has This Been Tested? | ||
# Testing Instructions | ||
|
||
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration | ||
|
||
- [ ] TODO | ||
- [ ] Test A | ||
- [ ] Test B | ||
|
||
|
||
# Suggested Checklist: | ||
|
||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have commented my code, particularly in hard-to-understand areas | ||
- [ ] My changes generate no new warnings | ||
- [ ] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods | ||
- [ ] `optional` I have made corresponding changes to the documentation | ||
- [ ] `optional` I have added tests that prove my fix is effective or that my feature works | ||
- [ ] `optional` New and existing unit tests pass locally with my changes |
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
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
from .app_config import DifyConfig | ||
|
||
dify_config = DifyConfig() |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from typing import Optional | ||
|
||
from pydantic import BaseModel, Field | ||
|
||
|
||
class OCIStorageConfig(BaseModel): | ||
""" | ||
OCI storage configs | ||
""" | ||
|
||
OCI_ENDPOINT: Optional[str] = Field( | ||
description='OCI storage endpoint', | ||
default=None, | ||
) | ||
|
||
OCI_REGION: Optional[str] = Field( | ||
description='OCI storage region', | ||
default=None, | ||
) | ||
|
||
OCI_BUCKET_NAME: Optional[str] = Field( | ||
description='OCI storage bucket name', | ||
default=None, | ||
) | ||
|
||
OCI_ACCESS_KEY: Optional[str] = Field( | ||
description='OCI storage access key', | ||
default=None, | ||
) | ||
|
||
OCI_SECRET_KEY: Optional[str] = Field( | ||
description='OCI storage secret key', | ||
default=None, | ||
) | ||
|
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
Oops, something went wrong.