fix: 修复 esc 转义 > 误写为 " + Excel 表头键取全行并集,新增 11 个单测

This commit is contained in:
范智鹏
2026-09-08 19:51:29 +08:00
parent d6b8a3c897
commit 4efe8ea512
82 changed files with 1238 additions and 972 deletions
@@ -197,7 +197,7 @@
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">3x</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { AIProvider, ChatOptions, EmptyContentError } from './base';
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { AIProvider, ChatOptions, EmptyContentError, ApiRequestError } from './base';
import { t } from '../../i18n/messages';
&nbsp;
export class GeminiProvider extends AIProvider {
@@ -235,7 +235,7 @@ export class GeminiProvider extends AIProvider {
&nbsp;
if (!response.ok) {
const errorText = await response.text();
throw new Error(`Gemini API 请求失败 (${response.status}): ${errorText}`);
throw new ApiRequestError(`Gemini API 请求失败 (${response.status}): ${errorText}`, response.status);
}
&nbsp;
const data = await response.json() as {
@@ -271,7 +271,7 @@ export class GeminiProvider extends AIProvider {
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2026-08-27T14:48:59.812Z
at 2026-09-06T04:25:28.718Z
</div>
<script src="../../../prettify.js"></script>
<script>