Skip to content

Commit

Permalink
feat: remove doubao ai summary feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
real-jiakai committed Oct 16, 2024
1 parent 27d4b07 commit 209d3bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 44 deletions.
5 changes: 2 additions & 3 deletions components/AISummary/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function AISummary({ contentMarkdown, params, tags }) {
setError('')
setSummary('')
const themeContent = extractThemeContent(contentMarkdown)
const message = `请用中文总结以下主题内容,并在总结末尾提及作者还分享了一些有趣的网站、实用的链接和金句。总结控制在50个中文字以内:\n\n${themeContent}`
const message = `请用中文总结以下话题内容。总结控制在50个中文汉字以内:\n\n${themeContent}`

fetch(`/api/${selectedAI}`, {
method: 'POST',
Expand Down Expand Up @@ -95,9 +95,8 @@ export default function AISummary({ contentMarkdown, params, tags }) {
onChange={(e) => setSelectedAI(e.target.value)}
aria-label="选择 AI 模型"
>
<option value="chatgpt">GPT-4o-Mini</option>
<option value="chatgpt">GPT-4o mini</option>
<option value="lingyiwangwu">Yi-Lightning</option>
<option value="doubao">Doubao-lite-4k</option>
</select>
</div>

Expand Down
40 changes: 0 additions & 40 deletions pages/api/doubao.js

This file was deleted.

2 changes: 1 addition & 1 deletion public/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id/>
<title>周见</title>
<updated>2024-10-16T06:50:22.674Z</updated>
<updated>2024-10-16T07:16:45.450Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<author>
<name>周见</name>
Expand Down

0 comments on commit 209d3bc

Please sign in to comment.