|
|
@@ -69,10 +69,9 @@ export class PaperService implements OnModuleInit {
|
|
|
this.genPaper(order)
|
|
|
}
|
|
|
|
|
|
- async genChapters(id: number) {
|
|
|
- const order = await this.findOrderById(id)
|
|
|
+ async genChapters(major: string, title: string, description: string) {
|
|
|
const tools = createLLM('gpt-3.5-turbo')
|
|
|
- const chapters = await genChapters(tools, order.major, order.title, order.description)
|
|
|
+ const chapters = await genChapters(tools, major, title, description)
|
|
|
return chapters
|
|
|
}
|
|
|
|