update gpt version (#310)

This commit is contained in:
星日语 2023-09-06 10:30:29 +08:00 committed by GitHub
parent a63941bdb1
commit 5aa193c384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -365,7 +365,8 @@ plugins:
tianli_gpt:
enable: false
field: post # all, post, wiki
api: 5Q5mpqRK5DkwT1X9Gi5e
api: 5Q5mpqRK5DkwT1X9Gi5e # tianli_gpt key
typingAnimate: true # 打字机动画
style:
darkmode: auto # auto / always / false

View File

@ -2,6 +2,7 @@
<script>
let tianliGPT_postSelector = '.md-text.content.<%= page.layout === 'post' ? 'post' : 'wiki' %>';
let tianliGPT_key = '<%= theme.plugins.tianli_gpt.api %>';
let tianliGPT_typingAnimate = <%= theme.plugins.tianli_gpt.typingAnimate %>;
</script>
<script defer src="https://cdn1.tianli0.top/gh/zhheo/Post-Abstract-AI@0.9/tianli_gpt.js"></script>
<script defer src="https://cdn1.tianli0.top/gh/zhheo/Post-Abstract-AI@0.13/tianli_gpt.js"></script>
<% } %>