-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed deprecated AI providers, added test for TaskProcessing
Signed-off-by: Alexander Piskun <[email protected]>
- Loading branch information
Showing
12 changed files
with
75 additions
and
743 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""Version of nc_py_api.""" | ||
|
||
__version__ = "0.16.0" | ||
__version__ = "0.17.0.dev0" |
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,45 +1,24 @@ | ||
"""Nextcloud API for AI Providers.""" | ||
|
||
from ..._session import AsyncNcSessionApp, NcSessionApp | ||
from .speech_to_text import _AsyncSpeechToTextProviderAPI, _SpeechToTextProviderAPI | ||
from .task_processing import _AsyncTaskProcessingProviderAPI, _TaskProcessingProviderAPI | ||
from .text_processing import _AsyncTextProcessingProviderAPI, _TextProcessingProviderAPI | ||
from .translations import _AsyncTranslationsProviderAPI, _TranslationsProviderAPI | ||
|
||
|
||
class ProvidersApi: | ||
"""Class that encapsulates all AI Providers functionality.""" | ||
|
||
speech_to_text: _SpeechToTextProviderAPI | ||
"""SpeechToText Provider API.""" | ||
text_processing: _TextProcessingProviderAPI | ||
"""TextProcessing Provider API.""" | ||
translations: _TranslationsProviderAPI | ||
"""Translations Provider API.""" | ||
task_processing: _TaskProcessingProviderAPI | ||
"""TaskProcessing Provider API.""" | ||
|
||
def __init__(self, session: NcSessionApp): | ||
self.speech_to_text = _SpeechToTextProviderAPI(session) | ||
self.text_processing = _TextProcessingProviderAPI(session) | ||
self.translations = _TranslationsProviderAPI(session) | ||
self.task_processing = _TaskProcessingProviderAPI(session) | ||
|
||
|
||
class AsyncProvidersApi: | ||
"""Class that encapsulates all AI Providers functionality.""" | ||
|
||
speech_to_text: _AsyncSpeechToTextProviderAPI | ||
"""SpeechToText Provider API.""" | ||
text_processing: _AsyncTextProcessingProviderAPI | ||
"""TextProcessing Provider API.""" | ||
translations: _AsyncTranslationsProviderAPI | ||
"""Translations Provider API.""" | ||
task_processing: _AsyncTaskProcessingProviderAPI | ||
"""TaskProcessing Provider API.""" | ||
|
||
def __init__(self, session: AsyncNcSessionApp): | ||
self.speech_to_text = _AsyncSpeechToTextProviderAPI(session) | ||
self.text_processing = _AsyncTextProcessingProviderAPI(session) | ||
self.translations = _AsyncTranslationsProviderAPI(session) | ||
self.task_processing = _AsyncTaskProcessingProviderAPI(session) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.