Commit 1ec1a0b
committed
fix(bailian): read region/workspaceId from message.values for refresh models
When the user clicks 'Refresh Models' with unsaved region/workspaceId changes
in the settings form, resolve those values from message.values first (same
pattern as the API key) before falling back to the saved apiConfiguration.
Previously, only apiConfiguration was read, so a refresh request would hit
the previously-saved region endpoint instead of the one currently shown in
the form.1 parent b160cbb commit 1ec1a0b
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | 1038 | | |
1037 | 1039 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
| 1040 | + | |
1042 | 1041 | | |
1043 | 1042 | | |
1044 | 1043 | | |
| |||
0 commit comments