-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tracy files for traces and sensible Invoker Exceptions
- Loading branch information
1 parent
44e9026
commit 40ab99a
Showing
9 changed files
with
81 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
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,3 +1,10 @@ | ||
# __init__.py | ||
from .executor import AzureOpenAIExecutor | ||
from .processor import AzureOpenAIProcessor | ||
from prompty.core import InvokerException | ||
|
||
try: | ||
from .executor import AzureOpenAIExecutor | ||
from .processor import AzureOpenAIProcessor | ||
except ImportError: | ||
raise InvokerException( | ||
"Error registering AzureOpenAIExecutor and AzureOpenAIProcessor", "azure" | ||
) |
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,10 @@ | ||
# __init__.py | ||
from prompty.core import InvokerException | ||
|
||
try: | ||
from ..azure.executor import AzureOpenAIExecutor | ||
from ..azure.processor import AzureOpenAIProcessor | ||
except ImportError: | ||
raise InvokerException( | ||
"Error registering AzureOpenAIExecutor and AzureOpenAIProcessor", "azure" | ||
) |
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,3 +1,10 @@ | ||
# __init__.py | ||
from .executor import AzureOpenAIExecutor | ||
from .processor import AzureOpenAIProcessor | ||
from prompty.core import InvokerException | ||
|
||
try: | ||
from .executor import OpenAIExecutor | ||
from .processor import OpenAIProcessor | ||
except ImportError: | ||
raise InvokerException( | ||
"Error registering OpenAIExecutor and OpenAIProcessor", "openai" | ||
) |
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,3 +1,8 @@ | ||
# __init__.py | ||
from .executor import ServerlessExecutor | ||
from .processor import ServerlessProcessor | ||
from prompty.core import InvokerException | ||
|
||
try: | ||
from .executor import ServerlessExecutor | ||
from .processor import ServerlessProcessor | ||
except ImportError: | ||
raise InvokerException("Error registering ServerlessExecutor and ServerlessProcessor", "serverless") |
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