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: tianli_gpt:
enable: false enable: false
field: post # all, post, wiki field: post # all, post, wiki
api: 5Q5mpqRK5DkwT1X9Gi5e api: 5Q5mpqRK5DkwT1X9Gi5e # tianli_gpt key
typingAnimate: true # 打字机动画
style: style:
darkmode: auto # auto / always / false darkmode: auto # auto / always / false

View File

@ -2,6 +2,7 @@
<script> <script>
let tianliGPT_postSelector = '.md-text.content.<%= page.layout === 'post' ? 'post' : 'wiki' %>'; let tianliGPT_postSelector = '.md-text.content.<%= page.layout === 'post' ? 'post' : 'wiki' %>';
let tianliGPT_key = '<%= theme.plugins.tianli_gpt.api %>'; let tianliGPT_key = '<%= theme.plugins.tianli_gpt.api %>';
let tianliGPT_typingAnimate = <%= theme.plugins.tianli_gpt.typingAnimate %>;
</script> </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>
<% } %> <% } %>