Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed deprecated AI providers, added test for TaskProcessing #289

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [0.17.0 - 2024-0x-xx]

### Changed

- NextcloudApp: `TextProcessing`, `Speech2Text` and `Translation` AI Providers API was removed.

## [0.16.0 - 2024-08-12]

### Changed
Expand Down
29 changes: 14 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,22 @@ Python library that provides a robust and well-documented API that allows develo
* **Sync + Async**: Provides both sync and async APIs.

### Capabilities
| **_Capability_** | Nextcloud 27 | Nextcloud 28 | Nextcloud 29 | Nextcloud 30 |
|-----------------------|:------------:|:------------:|:------------:|:------------:|
| Calendar | ✅ | ✅ | ✅ | ✅ |
| File System & Tags | ✅ | ✅ | ✅ | ✅ |
| Nextcloud Talk | ✅ | ✅ | ✅ | ✅ |
| Notifications | ✅ | ✅ | ✅ | ✅ |
| Shares | ✅ | ✅ | ✅ | ✅ |
| Users & Groups | ✅ | ✅ | ✅ | ✅ |
| User & Weather status | ✅ | ✅ | ✅ | ✅ |
| Other APIs*** | ✅ | ✅ | ✅ | ✅ |
| Talk Bot API* | ✅ | ✅ | ✅ | ✅ |
| Settings UI API* | N/A | N/A | ✅ | ✅ |
| AI Providers API** | N/A | N/A | | ✅ |
| **_Capability_** | Nextcloud 27 | Nextcloud 28 | Nextcloud 29 | Nextcloud 30 |
|------------------------------|:------------:|:------------:|:------------:|:------------:|
| Calendar | ✅ | ✅ | ✅ | ✅ |
| File System & Tags | ✅ | ✅ | ✅ | ✅ |
| Nextcloud Talk | ✅ | ✅ | ✅ | ✅ |
| Notifications | ✅ | ✅ | ✅ | ✅ |
| Shares | ✅ | ✅ | ✅ | ✅ |
| Users & Groups | ✅ | ✅ | ✅ | ✅ |
| User & Weather status | ✅ | ✅ | ✅ | ✅ |
| Other APIs** | ✅ | ✅ | ✅ | ✅ |
| Talk Bot API* | ✅ | ✅ | ✅ | ✅ |
| Settings UI API* | N/A | N/A | ✅ | ✅ |
| TaskProcessing Provider API* | N/A | N/A | N/A | ✅ |

&ast;_available only for **NextcloudApp**_<br>
&ast;&ast;_available only for **NextcloudApp**: SpeechToText, TextProcessing, Translation_<br>
&ast;&ast;&ast;_Activity, Notes_
&ast;&ast;_Activity, Notes_

### Differences between the Nextcloud and NextcloudApp classes

Expand Down
18 changes: 0 additions & 18 deletions docs/reference/ExApp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,6 @@ UI methods should be accessed with the help of :class:`~nc_py_api.nextcloud.Next
.. autoclass:: nc_py_api.ex_app.providers.providers.ProvidersApi
:members:

.. autoclass:: nc_py_api.ex_app.providers.speech_to_text.SpeechToTextProvider
:members:

.. autoclass:: nc_py_api.ex_app.providers.speech_to_text._SpeechToTextProviderAPI
:members:

.. autoclass:: nc_py_api.ex_app.providers.text_processing.TextProcessingProvider
:members:

.. autoclass:: nc_py_api.ex_app.providers.text_processing._TextProcessingProviderAPI
:members:

.. autoclass:: nc_py_api.ex_app.providers.translations.TranslationsProvider
:members:

.. autoclass:: nc_py_api.ex_app.providers.translations._TranslationsProviderAPI
:members:

.. autoclass:: nc_py_api.ex_app.providers.task_processing.ShapeType
:members:

Expand Down
2 changes: 1 addition & 1 deletion nc_py_api/_version.py
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"
21 changes: 0 additions & 21 deletions nc_py_api/ex_app/providers/providers.py
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)
128 changes: 0 additions & 128 deletions nc_py_api/ex_app/providers/speech_to_text.py

This file was deleted.

135 changes: 0 additions & 135 deletions nc_py_api/ex_app/providers/text_processing.py

This file was deleted.

Loading