|
|
@@ -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',
|