Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何解决:润色功能额度已用尽? #801

Closed
5 of 6 tasks
flyisland opened this issue Jan 27, 2025 · 1 comment
Closed
5 of 6 tasks

如何解决:润色功能额度已用尽? #801

flyisland opened this issue Jan 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@flyisland
Copy link

请先确认以下事项:

  • 请务必查看 常见问题
  • 已仔细阅读了 README
  • issues 页面搜索过问题(包括已关闭的 issue),但未能找到解决方法
  • Easydict 已升级到 最新版本
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

今天用润色功能时,出现提示:​💥 Failed: 令牌 Easydict 内置 AI 翻译(#1)额度已用尽 (request id: 2025012710050555455232422957615)

请问如何解决这个问题

该问题是否可以稳定重现?

可重现

重现步骤

试用润色功能

截图

Image

运行日志(zip 文件)

[2025-01-27 10:10:41.497 ● EZAppleService ● 751 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● ---> Apple detect: English
[2025-01-27 10:10:41.497 ● EZAppleService ● 776 ● ℹ️] -[EZAppleService getMostConfidentLanguage:text:printLog:] ● No spell checking, use Most Confident Language: English
[2025-01-27 10:10:41.497 ● EZBaseQueryViewController ● 441 ● ℹ️] -[EZBaseQueryViewController startQueryText:actionType:] ● query actionType: shortcut_query
[2025-01-27 10:10:41.565 ● EZBaseQueryViewController ● 782 ● ℹ️] -[EZBaseQueryViewController queryCurrentModel] ● query text: All accounts referenced by definitions should be defined on the main ledger.
[2025-01-27 10:10:41.568 ● EZBaseQueryViewController ● 797 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● query: English --> Simplified-Chinese
[2025-01-27 10:10:41.568 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Youdao
[2025-01-27 10:10:41.591 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Polishing
[2025-01-27 10:10:41.595 ● EZBaseQueryViewController ● 803 ● ℹ️] -[EZBaseQueryViewController queryAllSerives:] ● service disabled: Summary
[2025-01-27 10:10:41.647 ● EZAppleDictionary ● 264 ● ℹ️] -[EZAppleDictionary queryAllIframeHTMLResultOfWord:fromToLanguages:inDictionaries:] ● Query all dicts cost: 77.8 ms
[2025-01-27 10:10:41.647 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]block_invoke ● query error: Error Domain=com.izual.Easydict Code=6 "​💥 Failed, No results found" UserInfo={NSLocalizedDescription=​💥 Failed, No results found}
[2025-01-27 10:10:41.660 ● AppleScriptTask+System ● 52 ● ℹ️] setAlertVolumeAndReturnPrevious(
:) ● AppleScript set alert volume from 100 to 0
[2025-01-27 10:10:41.660 ● AppleScriptTask+System ● 34 ● ℹ️] muteAlertVolume() ● AppleScript muted alert volume
[2025-01-27 10:10:42.373 ● AppleScriptTask+System ● 27 ● ℹ️] setAlertVolume(_:) ● AppleScript set alert volume: 100
[2025-01-27 10:11:04.968 ● EZDeepLTranslate ● 245 ● ℹ️] -[EZDeepLTranslate deepLWebTranslate:from:to:completion:]_block_invoke ● deepLWebTranslate cost: 23400.1 ms
[2025-01-27 10:11:18.034 ● EZResultView ● 148 ● ℹ️] -[EZResultView setup]_block_invoke ● 点击 arrowButton, show: 1
[2025-01-27 10:11:19.059 ● EZBaseQueryViewController ● 824 ● ❌] -[EZBaseQueryViewController queryWithModel:service:]_block_invoke ● query error: OpenAI.APIErrorResponse(error: OpenAI.APIError(message: "令牌 Easydict 内置 AI 翻译(#1)额度已用尽 (request id: 2025012710111894270685246357262)", type: "one_api_error", param: nil, code: nil))
[2025-01-27 10:11:39.848 ● MenuItemView ● 205 ● ℹ️] helpItem ● 日志目录
[2025-01-27 10:11:39.915 ● EZWindowManager ● 981 ● ℹ️] -[EZWindowManager closeFloatingWindow:] ● close window type: 2
[2025-01-27 10:11:46.649 ● MenuItemView ● 214 ● ℹ️] exportLogAction() ● 导出日志

期望结果

正常使用

解决方案(可选)

建议提供可配置选项,用户自己自行选择ai服务

设备型号 && 系统版本

Apple M2 Pro, Sonoma 14.6.1

是否愿意提交 PR 解决该问题?

  • 我愿意提交 PR 来解决该问题
@flyisland flyisland added the bug Something isn't working label Jan 27, 2025
@tisfeng
Copy link
Owner

tisfeng commented Jan 27, 2025

这次更新加了新的模型,忘了修改倍率,导致额度消耗过多。

我刚调整了内置 AI 服务模型的倍率,也更新了 token 额度。

@tisfeng tisfeng closed this as completed Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants