fix: apply web search config on provider-unchanged early return; bump to 1.3.6
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -297,7 +297,13 @@ function applyFullProviderFromVps(provider, onDone) {
|
||||
const curMd5 = computeModelsMd5(cur.models || []);
|
||||
const newMd5 = computeModelsMd5(list);
|
||||
if (curApiKey === apiKey && curMd5 === newMd5) {
|
||||
log.info('openclaw-provider', `provider 无变化(apiKey + 模型列表相同),跳过写盘`);
|
||||
// provider 无变化,但仍检查 web search 配置
|
||||
if (ensureWebSearchConfig(configFile, existing)) {
|
||||
writeJsonFile(configFile, existing);
|
||||
log.info('openclaw-provider', 'web search config applied (provider unchanged)');
|
||||
} else {
|
||||
log.info('openclaw-provider', `provider 无变化(apiKey + 模型列表相同),跳过写盘`);
|
||||
}
|
||||
if (typeof onDone === 'function') { try { onDone(); } catch (e) { log.warn('openclaw-provider', `onDone: ${e.message}`); } }
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user