Skip to content

Conversation

@ChenZiHong-Gavin
Copy link
Collaborator

As title.
Also, accessing arguments via index is not convenient for subsequent maintenance (for run_graphgen method). It can be considered to encapsulate them into a Config class.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the web UI to support synthesizer and trainee models from different providers by updating parameter indices and UI components.

  • Adjusted environment variable indices for trainee config (base URL and API key).
  • Updated the relevant UI components and their callbacks to separately handle synthesizer and trainee models.
Files not reviewed (1)
  • webui/translation.json: Language not supported
Comments suppressed due to low confidence (2)

webui/app.py:108

  • Verify that index 20 correctly corresponds to the trainee base URL parameter and that it doesn't conflict with the synthesizer configuration.
"TRAINEE_BASE_URL": arguments[20],

webui/app.py:111

  • Ensure that index 21 for the trainee API key is accurate in the context of the argument ordering, and matches the intended configuration for the trainee model.
"TRAINEE_API_KEY": arguments[21],

@tpoisonooo tpoisonooo merged commit c443180 into main Apr 28, 2025
2 checks passed
ChenZiHong-Gavin pushed a commit that referenced this pull request Jun 4, 2025
feat(webui): support M_synth & M_train from different providers
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.

3 participants