Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DjangoPeng/LanguageMentor
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: algorithm9/LanguageMentor
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 25 files changed
  • 1 contributor

Commits on Aug 24, 2025

  1. fix(ui): Resolve application crash by upgrading Gradio

    Upgrades the Gradio library to the latest version to fix a  that occurred on application startup.
    
    The new version of Gradio introduced breaking changes to the  component. This commit removes the deprecated , , and  arguments from its initialization across all UI tabs to ensure compatibility.
    
    Affected files:
    - src/tabs/scenario_tab.py
    - src/tabs/conversation_tab.py
    - src/tabs/vocab_tab.py
    algorithm9 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    5273282 View commit details
    Browse the repository at this point in the history
  2. feat(scenarios): Add salary negotiation, renting, and leave request s…

    …cenarios
    
    This commit expands the available practice scenarios by adding three new real-world situations:
    - Salary Negotiation
    - Renting an Apartment
    - Requesting Leave from Work
    
    New prompt files, introduction message files, and markdown descriptions have been created for each scenario. The scenario tab UI has been updated to include these new options.
    algorithm9 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    abb12f4 View commit details
    Browse the repository at this point in the history
  3. feat(core): Implement multi-provider LLM support and fix UI bugs

    This major update refactors the application's core to support multiple Large Language Model (LLM) providers, including Ollama (local), OpenAI, and DeepSeek. The model is no longer hardcoded and can now be configured via a central  file.
    
    Additionally, this commit fixes a critical bug that caused the scenario chatbot to crash upon starting a new session.
    
    Key changes include:
    
    **Features:**
    - **Configurable LLM Providers:**
        - [cite_start]Introduced a  file to define and manage configurations for different LLM providers (Ollama, OpenAI, DeepSeek)[cite: 6].
        - [cite_start]Added a  utility to load the active model's configuration from [cite: 30, 31, 32].
        - [cite_start]Refactored  to dynamically initialize the language model (, , ) based on the active configuration[cite: 8, 13, 14, 20].
        - [cite_start]The system now checks for necessary environment variables (, ) when a cloud provider is selected[cite: 15, 16].
    - **Updated Dependencies:**
        - [cite_start]Added  for configuration file parsing and  for DeepSeek model support[cite: 7].
    - **Improved Documentation:**
        - [cite_start]Updated  with new instructions on how to configure the active model and set API keys using a  file or environment variables[cite: 2, 3].
    
    **Bug Fixes:**
    - **Scenario Chatbot Crash:**
        - Fixed a  caused by passing an incorrect data format to the chatbot component.
        - [cite_start] is updated to return the full chat history in a Gradio-compatible format (a list of dictionaries)[cite: 24, 25, 26, 27].
        - [cite_start] is updated to correctly pass this formatted data to the existing chatbot component instead of creating a new one[cite: 28, 29].
    
    **Refactoring:**
    - [cite_start]Updated docstrings and comments in  to English for better clarity and consistency[cite: 9, 10, 11, 12, 18, 21].
    algorithm9 committed Aug 24, 2025
    Configuration menu
    Copy the full SHA
    16b240f View commit details
    Browse the repository at this point in the history
Loading