fix(core): copilot client should throw right ai error (#9958)

[BS-2488](https://linear.app/affine-design/issue/BS-2488/copilot-client-需要正确返回错误类型)
This commit is contained in:
donteatfriedrice
2025-02-05 12:46:12 +00:00
parent 4ed03c9f0e
commit 9cae1c3a28
3 changed files with 94 additions and 61 deletions

View File

@@ -155,7 +155,7 @@ export class AIPanelError extends WithDisposable(LitElement) {
<span>Cancel</span>
</div>
<div @click=${this.config.login} class="action-button primary">
<span>login</span>
<span>Login</span>
</div>
</div>`,
],