fix: 修复 esc 转义 > 误写为 " + Excel 表头键取全行并集,新增 11 个单测
This commit is contained in:
@@ -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"> </span></td><td class="text"><pre class="prettyprint lang-js">import { AIProvider, ChatOptions, EmptyContentError } from './base';
|
||||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { AIProvider, ChatOptions, EmptyContentError, ApiRequestError } from './base';
|
||||
import { t } from '../../i18n/messages';
|
||||
|
||||
export class GeminiProvider extends AIProvider {
|
||||
@@ -235,7 +235,7 @@ export class GeminiProvider extends AIProvider {
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user