hexo-theme-stellar/layout/_plugins/tianli_gpt.ejs

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-02-12 23:07:56 +08:00
<% if (['all', page.layout].includes(theme.plugins.tianli_gpt.field)) { %>
<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>
<% } %>