protocol-proxy 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/app.js +3 -1
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -199,7 +199,9 @@ function selectProvider(id) {
|
|
|
199
199
|
document.getElementById('provider-dropdown-value').textContent = provider
|
|
200
200
|
? (provider.name !== provider.url ? `${provider.name} - ${provider.url}` : provider.url)
|
|
201
201
|
: '选择供应商...';
|
|
202
|
-
|
|
202
|
+
// 切换供应商后模型自动选为该供应商模型列表的第一个
|
|
203
|
+
const models = provider?.models || [];
|
|
204
|
+
selectModel(models[0] || '');
|
|
203
205
|
updateModelAddState();
|
|
204
206
|
// 加载供应商的 API Key
|
|
205
207
|
if (id) {
|