fix(ai): AI助手图片压缩阈值从1024提升到1568,减少长图模糊

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
kuaifan 2026-04-17 05:12:16 +00:00
parent 82d2ca6360
commit fbd1c829a1

View File

@ -1927,9 +1927,8 @@ export default {
* @returns {Promise<string>} - Base64 data URL (image/jpeg) * @returns {Promise<string>} - Base64 data URL (image/jpeg)
*/ */
async compressImageForAI(file) { async compressImageForAI(file) {
// File dataUrl 1024px
const dataUrl = await this.fileToDataUrl(file); const dataUrl = await this.fileToDataUrl(file);
return this.resizeDataUrl(dataUrl, 1024, true); return this.resizeDataUrl(dataUrl, 1568, true);
}, },
/** /**