Skip to content

Decoupled providers from AWS and added a new default service#2

Open
DevToolsBlaise wants to merge 3 commits into
takanory:mainfrom
BlaiseLabs:ioc-refactor
Open

Decoupled providers from AWS and added a new default service#2
DevToolsBlaise wants to merge 3 commits into
takanory:mainfrom
BlaiseLabs:ioc-refactor

Conversation

@DevToolsBlaise

@DevToolsBlaise DevToolsBlaise commented Oct 30, 2025

Copy link
Copy Markdown

This refactor decouples the AWS and DeepL API integrations from the Streamlit app’s core logic.
A new OpenAI based provider has been added and set as the default for simplicity.

To add a new provider:

  1. Implement a class under services/ that conforms to the following constructs:

    • Translator (services/translation.py)

    • TextToSpeech (services/tts.py)

  2. Register the provider in services/factory.py.

  3. Optionally, update the Streamlit app configuration to make your new provider the default.

Only the current default provider (OpenAI) has been tested so far, since access to AWS and DeepL is unavailable.

The code for the refactor was generated by @ChefTDD with my review and oversight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant