-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'langgenius:main' into main
- Loading branch information
Showing
21 changed files
with
718 additions
and
329 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
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,3 @@ | ||
from .service import AppDslService | ||
|
||
__all__ = ["AppDslService"] |
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,34 @@ | ||
class DSLVersionNotSupportedError(ValueError): | ||
"""Raised when the imported DSL version is not supported by the current Dify version.""" | ||
|
||
|
||
class InvalidYAMLFormatError(ValueError): | ||
"""Raised when the provided YAML format is invalid.""" | ||
|
||
|
||
class MissingAppDataError(ValueError): | ||
"""Raised when the app data is missing in the provided DSL.""" | ||
|
||
|
||
class InvalidAppModeError(ValueError): | ||
"""Raised when the app mode is invalid.""" | ||
|
||
|
||
class MissingWorkflowDataError(ValueError): | ||
"""Raised when the workflow data is missing in the provided DSL.""" | ||
|
||
|
||
class MissingModelConfigError(ValueError): | ||
"""Raised when the model config data is missing in the provided DSL.""" | ||
|
||
|
||
class FileSizeLimitExceededError(ValueError): | ||
"""Raised when the file size exceeds the allowed limit.""" | ||
|
||
|
||
class EmptyContentError(ValueError): | ||
"""Raised when the content fetched from the URL is empty.""" | ||
|
||
|
||
class ContentDecodingError(ValueError): | ||
"""Raised when there is an error decoding the content.""" |
Oops, something went wrong.