Skip to content

[BUG]: Switching to Custom Platform retains modelId from previous platform #146

@AQIU20

Description

@AQIU20

🐛 Bug description [Please make everyone to understand it]

In the settings page, when switching from Doubao or OpenAI platform to Custom Platform, the modelId field incorrectly retains the preset value from the previous platform instead of displaying the custom configuration information fetched from the backend.

🧑‍💻 Step to reproduce

  1. Open the settings page
  2. Select Doubao platform (modelId will be automatically set to "doubao-seed-1-6-flash-250828")
  3. Switch to Custom Platform
  4. Observe that the modelId field still shows "doubao-seed-1-6-flash-250828" instead of the custom configuration fetched from the backend

👾 Expected result

Regardless of which platform you switch from to Custom Platform, it should display the custom configuration information fetched from the backend, including the correct modelId, baseUrl, and other fields.

🚑 Any additional information

No response

🛠️ MineContext Version

V0.1.2

💻 Platform Details

Windows11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions