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