AnkiWeb
- Rating
- 0 (👍 0 · 👎 0)
- Updated
- 2025-11-27
- Anki versions
- unknown
- Description language
- zh
AnkiWeb addon 724150025
Adds a review-card button to query AI for grammar/vocabulary explanations, fill a chosen field, with configurable prompts, API keys, and multi-turn context.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.0 | – | 2025-11-27 |
Loading…
Autofills Anki fields using ChatGPT or Claude prompts with card field placeholders, supports multiple cards, saves prompts, and requires an API key; requests cost about $0.002 each.
Adds configurable AI buttons to Anki's review screen that run prompts on card fields and save responses permanently to target fields.
Queries Anthropic or OpenAI APIs with custom prompts to fill Anki note fields, supporting shortcuts, bulk updates, multiple note types, card creation, and debugging.
Generates vocabulary card fields using AI/LLM APIs from a subtitle or sentence inside Anki's card editor.
Adds an Explain sidebar to Anki reviews, providing Gemini AI explanations, follow-up chat, customizable prompts, streaming responses, model choices, and accessibility improvements.
Generates AI multiple-choice vocabulary questions with blanked sentences and deck-word distractors for selected notes or whole decks, configurable via config.json and syncable to mobile.
本插件允许你在 Anki 复习卡片时,一键调用 Google Gemini AI(或者其他AI),对日语句子进行详细的语法和词汇解析(或者问别的问题,可以设置自己设置上下文与prompt),并将结果自动填入指定字段(需要配合1020366288插件)。
<img width="696" height="945" alt="图片" src="https://github.com/user-attachments/assets/ccdf0277-fd61-4045-8aa5-8a810630c4a9" />
本插件所有代码均为AI生成,人为修改不到1%
Edit Field During Review 插件的兼容性,更新解析后无需刷新卡片。安装插件:
[724150025] 安装本插件。[1020366288] 安装依赖插件Edit Field During Review。获取 Gemini API Key(或者别的AI的API):
配置插件:
API Key 字段。提问字段 (例如:Expression) 和 回答字段 (例如:Edit)。在卡片模板中添加按钮:
<button onclick="pycmd('aiGenerate')" style="padding: 10px 1px; background: #3d8b40; font-size: 14px;">AI提问</button>
{{AI解析}} 字段旁边。<!--
<div>{{kanji:am-highlighted}}</div>
复制Expression字段
<button class="copy-btn" onclick="copyReading(this)" data-copy-anniu="{{Expression}}">复制</button>
-->
{{Audio}}
<div>{{Snapshot}}</div>
<script>
function copyReading(button) {
// 从按钮的anniu属性获取特定字段的内容
const readingText = button.getAttribute('data-copy-anniu');
// 创建临时textarea元素
const textarea = document.createElement('textarea');
textarea.value = readingText;
document.body.appendChild(textarea);
// copy
textarea.select();
document.execCommand('copy');
// delete
document.body.removeChild(textarea);
// update
const originalText = button.textContent;
button.textContent = '搞掂';
button.classList.add('copied');
}
</script>
<button class="copy-btn" onclick="copyReading(this)" data-copy-anniu="{{Expression}}">复制</button>
<div>{{furigana:am-highlighted}}</div>
<div>{{Snapshot}}</div>
<div style='font-size: 40px'>{{edit:Meaning}}</div>
<div style='font-size: 25px; text-align:start'>{{edit:Edit}}</div>
<button onclick="pycmd('aiGenerate')" style="padding: 10px 1px; background: #3d8b40; font-size: 14px;">AI提问</button>
.card {
font-family: arial;
font-size: 50px;
text-align: center;
color: #CDC8B1;
background-color: #25390c;##f1e5c9;
}
.card.nightMode {
font-family: arial;//arial
font-size: 50px;
text-align: center;
color: #8B8878;
#background-color: #25390c;
}
.expression{
font-size: 40px;
}
[morph-status=unknown] { color: red; }
[morph-status=learning] { color: #1E90FF; }
[morph-status=known] { color: green; }
.copy-btn {
padding: 10px 1px;
background-color: #3d8b40;
font-size: 18px; /* 可用 !important增大字体 */
float: left;
}
.copy-btn.copied {
background-color: #666;
}
<img width="1154" height="1222" alt="图片" src="https://github.com/user-attachments/assets/8cfe2698-9a11-4eac-8a38-f46cfdbd177b" />
如果你遇到任何问题或有功能建议,欢迎到本项目的 GitHub Issues 页面提交。
或者 这个TG频道。
25/11/28 修改了设置的逻辑,更新插件后不需要重新配置config,并且修改了报错时回复的逻辑,API调用错误不会再返回完整的api请求,而是会把apikey遮蔽,避免直播学习时漏出apikey,然后还有一些跟回报相关的逻辑也改了