xiongzhu 1 year ago
parent
commit
19a28591fc
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/paper/paper.service.ts

+ 6 - 6
src/paper/paper.service.ts

@@ -142,12 +142,12 @@ export class PaperService implements OnModuleInit {
             }
         }
 
-        const { llm } = createLLM('gpt-3.5-turbo')
-        const { content } = await llm.call([
-            new HumanMessage(`你要从我给你的论文标题中提取2-3个由逗号分隔的主要关键词。\n\n标题:${title}\n关键词:`)
-        ])
-        const keywords = content.replace(/,/g, ',').split(',')
-        // const keywords = title
+        // const { llm } = createLLM('gpt-3.5-turbo')
+        // const { content } = await llm.call([
+        //     new HumanMessage(`你要从我给你的论文标题中提取2-3个由逗号分隔的主要关键词。\n\n标题:${title}\n关键词:`)
+        // ])
+        // const keywords = content.replace(/,/g, ',').split(',')
+        const keywords = [title]
         const http = axios.create({
             headers: {
                 Host: 'kns.cnki.net',