-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
237 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
<% if (['all', page.layout].includes(theme.plugins.tianli_gpt.field)) { %> | ||
<script> | ||
let tianliGPT_postSelector = 'article.content'; | ||
let tianliGPT_key = `<%= theme.plugins.tianli_gpt?.api %>`; | ||
let tianliGPT_typingAnimate = `<%= theme.plugins.tianli_gpt?.typingAnimate %>`; | ||
let tianliGPT_wordLimit = `<%= theme.plugins.tianli_gpt?.limit %>`; | ||
</script> | ||
<script defer src="<%- theme.plugins.tianli_gpt?.js %>"></script> | ||
<% } %> | ||
<script src="<%- theme.plugins.tianli_gpt?.js %>"></script> | ||
<script data-pjax defer> | ||
new ChucklePostAI({ | ||
el: 'article.content', | ||
key: '<%= theme.plugins.tianli_gpt?.api %>', | ||
rec_method: '<%= theme.plugins.tianli_gpt?.recommend || all %>', | ||
summary_directly: `<%= theme.plugins.tianli_gpt?.direct %>`, | ||
typewriter: `<%= theme.plugins.tianli_gpt?.typingAnimate %>`, | ||
css: `/css/_plugins/tianli_gpt`, | ||
summary_toggle: false, | ||
total_length: `<%= theme.plugins.tianli_gpt?.limit %>`, | ||
hide_shuttle: `<%= theme.plugins.tianli_gpt?.shuttle %>`, | ||
interface: { | ||
name: "AI摘要", | ||
introduce: "我是文章辅助AI: QX-AI,点击下方的按钮,让我生成本文简介、推荐相关文章等。", // 自我介绍 | ||
version: "TianliGPT", | ||
button: ["介绍自己", "推荐文章", "生成摘要", "矩阵穿梭"], | ||
}, | ||
}) | ||
</script> | ||
<% } %> | ||
|
Oops, something went wrong.