0


【AI写小说】使用AI写小说的一些体会

大家好,我是马丁,我前两天在使用Dify构建写小说的AI应用,一个演示版本我已经公开了。地址是

体验版地址

因为使用的是自己的主机,不是云服务器,偶尔的情况可能会出现网络不稳定的情况,耐心等下就行了。

感兴趣的可以自己尝试下,如果想在自己的dify平台上运行、修改,在文末有DSL配置,导入即可。

点进去的界面栈这样:

我还是先说下,这玩意怎么用吧,小说类型可以填写多个,比如玄幻、悬疑、爱情,故事元素你可以随便写,比如爱情、高智商、犯罪、德玛西亚等;小说主题,你也可以写一个简单的故事概要。

章节数量和每章字数,因为是演示版,所以都做了限制,最多有3个章节,每章最多800个字。

风格特点字段是设定小说写作的风格,比如:故事节奏紧密、很多的人物对话、通过对话推进故事进展、人物心理描写细腻、环境描写细致等等。

感兴趣的可以自己尝试下,因为这个工作流中有很多的节点,所有运行时间比较长。

这个小说应用使用到的大模型是gemma2:9b,通过ollama在本地主机上运行的,更大参数的模型效果会更好,可惜,我电脑电脑跑不起来~~

整个工作流中包含12个节点,还有迭代中的写其他章节的节点。

感受

第一个感觉就是,还是比较依赖大模型的,我试过豆包的128K的模型和32K的模型,感觉还是128K的会更好点。也试过使用本地的qwen2:7b和gemm2:9b的模型,gemm2的效果要比前者好点。

第二个问题是,在第一次让大模型给小说根据建议完善的时候,出来的是完整的修改后的小说,但是第二次让它根据建议完善小说的时候,模型返回的有时候就不是修改后的小说了。这个可能是模型的理解能力还是不太够造成的,如果换成更大的模型可能会好点。我试过使用豆包的32k的模型,也是这样。

第三个问题是,但小说的整体字数很多时,因为模型没法一次性给出完整的小说,所以需要分章节输出,但是分章节输出给出的效果就是,每个章节之间的衔接不好,显得比较突兀。这个原因可能是自己的提示词或者工作流设置的还是不够完善造成的。我是把每个章节的大纲都给到模型,然后让它输出第几个章节的内容。这样,它只记得前面章节的大纲,没法知道具体的章节内容,所以才会出现这种情况。可能的优化方法是让大模型把之前的章节内容进行总结,然后再拿着当前的章节大纲一起给到模型,这样可能会好点,但是我没有试过,你有兴趣可以自己测试下~~

DSL配置

  1. app:
  2. description: 无论多长的小说都可以搞定
  3. icon: 🤖
  4. icon_background: '#FFEAD5'
  5. mode: workflow
  6. name: 小说创作-本地演示版
  7. kind: app
  8. version: 0.1.1
  9. workflow:
  10. conversation_variables: []
  11. environment_variables: []
  12. features:
  13. file_upload:
  14. image:
  15. enabled: false
  16. number_limits: 3
  17. transfer_methods:
  18. - local_file
  19. - remote_url
  20. opening_statement: ''
  21. retriever_resource:
  22. enabled: false
  23. sensitive_word_avoidance:
  24. enabled: false
  25. speech_to_text:
  26. enabled: false
  27. suggested_questions: []
  28. suggested_questions_after_answer:
  29. enabled: false
  30. text_to_speech:
  31. enabled: false
  32. language: ''
  33. voice: ''
  34. graph:
  35. edges:
  36. - data:
  37. isInIteration: false
  38. sourceType: iteration
  39. targetType: template-transform
  40. id: 1724160609005-source-1724169251517-target
  41. selected: false
  42. source: '1724160609005'
  43. sourceHandle: source
  44. target: '1724169251517'
  45. targetHandle: target
  46. type: custom
  47. zIndex: 0
  48. - data:
  49. isInIteration: false
  50. sourceType: llm
  51. targetType: llm
  52. id: 1724222200431-source-1724222941382-target
  53. selected: false
  54. source: '1724222200431'
  55. sourceHandle: source
  56. target: '1724222941382'
  57. targetHandle: target
  58. type: custom
  59. zIndex: 0
  60. - data:
  61. isInIteration: false
  62. sourceType: llm
  63. targetType: llm
  64. id: 1724222941382-source-1724159722707-target
  65. selected: false
  66. source: '1724222941382'
  67. sourceHandle: source
  68. target: '1724159722707'
  69. targetHandle: target
  70. type: custom
  71. zIndex: 0
  72. - data:
  73. isInIteration: false
  74. sourceType: llm
  75. targetType: llm
  76. id: 1724159722707-source-1724224003000-target
  77. selected: false
  78. source: '1724159722707'
  79. sourceHandle: source
  80. target: '1724224003000'
  81. targetHandle: target
  82. type: custom
  83. zIndex: 0
  84. - data:
  85. isInIteration: false
  86. sourceType: llm
  87. targetType: parameter-extractor
  88. id: 1724225313253-source-1724229051754-target
  89. selected: false
  90. source: '1724225313253'
  91. sourceHandle: source
  92. target: '1724229051754'
  93. targetHandle: target
  94. type: custom
  95. zIndex: 0
  96. - data:
  97. isInIteration: false
  98. sourceType: parameter-extractor
  99. targetType: iteration
  100. id: 1724229051754-source-1724160609005-target
  101. selected: false
  102. source: '1724229051754'
  103. sourceHandle: source
  104. target: '1724160609005'
  105. targetHandle: target
  106. type: custom
  107. zIndex: 0
  108. - data:
  109. isInIteration: false
  110. sourceType: llm
  111. targetType: llm
  112. id: 1724224003000-source-1724225313253-target
  113. selected: false
  114. source: '1724224003000'
  115. sourceHandle: source
  116. target: '1724225313253'
  117. targetHandle: target
  118. type: custom
  119. zIndex: 0
  120. - data:
  121. isInIteration: true
  122. iteration_id: '1724160609005'
  123. sourceType: if-else
  124. targetType: llm
  125. id: 1724234539814-true-1724234821042-target
  126. selected: false
  127. source: '1724234539814'
  128. sourceHandle: 'true'
  129. target: '1724234821042'
  130. targetHandle: target
  131. type: custom
  132. zIndex: 1002
  133. - data:
  134. isInIteration: true
  135. iteration_id: '1724160609005'
  136. sourceType: llm
  137. targetType: llm
  138. id: 1724234821042-source-1724345102373-target
  139. source: '1724234821042'
  140. sourceHandle: source
  141. target: '1724345102373'
  142. targetHandle: target
  143. type: custom
  144. zIndex: 1002
  145. - data:
  146. isInIteration: true
  147. iteration_id: '1724160609005'
  148. sourceType: llm
  149. targetType: llm
  150. id: 1724345102373-source-1724345707464-target
  151. source: '1724345102373'
  152. sourceHandle: source
  153. target: '1724345707464'
  154. targetHandle: target
  155. type: custom
  156. zIndex: 1002
  157. - data:
  158. isInIteration: false
  159. sourceType: template-transform
  160. targetType: llm
  161. id: 1724169251517-source-1724346159780-target
  162. source: '1724169251517'
  163. sourceHandle: source
  164. target: '1724346159780'
  165. targetHandle: target
  166. type: custom
  167. zIndex: 0
  168. - data:
  169. isInIteration: false
  170. sourceType: llm
  171. targetType: llm
  172. id: 1724346159780-source-1724346394465-target
  173. source: '1724346159780'
  174. sourceHandle: source
  175. target: '1724346394465'
  176. targetHandle: target
  177. type: custom
  178. zIndex: 0
  179. - data:
  180. isInIteration: false
  181. sourceType: start
  182. targetType: llm
  183. id: 1724159427762-source-1724222200431-target
  184. source: '1724159427762'
  185. sourceHandle: source
  186. target: '1724222200431'
  187. targetHandle: target
  188. type: custom
  189. zIndex: 0
  190. - data:
  191. isInIteration: false
  192. sourceType: llm
  193. targetType: end
  194. id: 1724346394465-source-1724160077784-target
  195. source: '1724346394465'
  196. sourceHandle: source
  197. target: '1724160077784'
  198. targetHandle: target
  199. type: custom
  200. zIndex: 0
  201. nodes:
  202. - data:
  203. desc: ''
  204. selected: true
  205. title: 开始
  206. type: start
  207. variables:
  208. - label: 小说类型
  209. max_length: 48
  210. options: []
  211. required: true
  212. type: text-input
  213. variable: type
  214. - label: 章节数量
  215. max_length: 48
  216. options:
  217. - '1'
  218. - '2'
  219. - '3'
  220. required: true
  221. type: select
  222. variable: chapter_count
  223. - label: 故事元素
  224. max_length: 48
  225. options: []
  226. required: true
  227. type: text-input
  228. variable: element
  229. - label: 每章字数
  230. max_length: 48
  231. options:
  232. - '100'
  233. - '400'
  234. - '800'
  235. required: true
  236. type: select
  237. variable: chapter_zifu_num
  238. - label: 小说主题
  239. max_length: 1280
  240. options: []
  241. required: false
  242. type: paragraph
  243. variable: topic
  244. - label: 写作特点
  245. max_length: 2000
  246. options: []
  247. required: false
  248. type: paragraph
  249. variable: features
  250. height: 326
  251. id: '1724159427762'
  252. position:
  253. x: -713.3201798028794
  254. y: 227.78492012105585
  255. positionAbsolute:
  256. x: -713.3201798028794
  257. y: 227.78492012105585
  258. selected: true
  259. sourcePosition: right
  260. targetPosition: left
  261. type: custom
  262. width: 244
  263. - data:
  264. context:
  265. enabled: false
  266. variable_selector: []
  267. desc: 主要角色背景
  268. model:
  269. completion_params:
  270. temperature: 0.7
  271. mode: chat
  272. name: gemma2
  273. provider: ollama
  274. prompt_template:
  275. - id: d311d7c9-ba2c-4152-a66d-b68d2a6c8381
  276. role: system
  277. text: '你是一名作家,你的任务是根据小说的已知信息设定小说的主要角色和背景。
  278. 具体目标:参考下面已知小说信息,创造3-5个主要角色,为每个角色提供一个详细的背景描述,包括外贸、性格、历史和动机。
  279. 输出规范要求:每个角色的描述不超过150个字。
  280. -------------下面是已知小说信息------------
  281. 故事背景:{{#1724222200431.text#}}
  282. 故事概览:{{#1724222941382.text#}}
  283. '
  284. selected: false
  285. title: 角色背景
  286. type: llm
  287. variables: []
  288. vision:
  289. enabled: false
  290. height: 177
  291. id: '1724159722707'
  292. position:
  293. x: 579.9188172305878
  294. y: 241.58087147858419
  295. positionAbsolute:
  296. x: 579.9188172305878
  297. y: 241.58087147858419
  298. selected: false
  299. sourcePosition: right
  300. targetPosition: left
  301. type: custom
  302. width: 244
  303. - data:
  304. desc: ''
  305. outputs:
  306. - value_selector:
  307. - '1724346394465'
  308. - text
  309. variable: result
  310. selected: false
  311. title: 结束
  312. type: end
  313. height: 131
  314. id: '1724160077784'
  315. position:
  316. x: 4156.014626634642
  317. y: -105.74727794845569
  318. positionAbsolute:
  319. x: 4156.014626634642
  320. y: -105.74727794845569
  321. selected: false
  322. sourcePosition: right
  323. targetPosition: left
  324. type: custom
  325. width: 244
  326. - data:
  327. desc: ''
  328. height: 282
  329. iterator_selector:
  330. - '1724229051754'
  331. - chapter_dagangs
  332. output_selector:
  333. - '1724234821042'
  334. - text
  335. output_type: array[string]
  336. selected: false
  337. startNodeType: if-else
  338. start_node_id: '1724234539814'
  339. title: 迭代
  340. type: iteration
  341. width: 1459.8824245199337
  342. height: 282
  343. id: '1724160609005'
  344. position:
  345. x: 1639.1874875601834
  346. y: 255.6557646854409
  347. positionAbsolute:
  348. x: 1639.1874875601834
  349. y: 255.6557646854409
  350. selected: false
  351. sourcePosition: right
  352. targetPosition: left
  353. type: custom
  354. width: 1460
  355. zIndex: 1
  356. - data:
  357. desc: 将多个章节合并
  358. selected: false
  359. template: '{{ first_content + ''\r\n'' + (arg1|join(''\r\n'')) }}'
  360. title: 合并章节
  361. type: template-transform
  362. variables:
  363. - value_selector:
  364. - '1724160609005'
  365. - output
  366. variable: arg1
  367. - value_selector:
  368. - '1724225313253'
  369. - text
  370. variable: first_content
  371. height: 111
  372. id: '1724169251517'
  373. position:
  374. x: 2969.6151885105674
  375. y: -105.74727794845569
  376. positionAbsolute:
  377. x: 2969.6151885105674
  378. y: -105.74727794845569
  379. selected: false
  380. sourcePosition: right
  381. targetPosition: left
  382. type: custom
  383. width: 244
  384. - data:
  385. context:
  386. enabled: false
  387. variable_selector: []
  388. desc: 故事背景
  389. model:
  390. completion_params:
  391. temperature: 0.7
  392. mode: chat
  393. name: gemma2
  394. provider: ollama
  395. prompt_template:
  396. - id: efb3e47b-1e10-4441-992a-8d94ababf5f7
  397. role: system
  398. text: '你是一名作家,你的任务是设定一个引人入胜的小说背景和主题。
  399. 具体目标是:参考下面的已知小说信息,创建一个原创的小说背景,包括故事发生的地址、时代背景(如现代、未来等)、主题(如爱情、奋斗、复仇等)。
  400. 输出规范要求:提供200字以内的描述,确保背景和主题具有吸引力和独特性。
  401. -------------下面是已知小说信息------------
  402. 小说类型:{{#1724159427762.type#}}
  403. 相关元素:{{#1724159427762.element#}}
  404. 主要内容:{{#1724159427762.topic#}}
  405. '
  406. selected: false
  407. title: background
  408. type: llm
  409. variables: []
  410. vision:
  411. enabled: false
  412. height: 177
  413. id: '1724222200431'
  414. position:
  415. x: 6.357518373344192
  416. y: 241.58087147858419
  417. positionAbsolute:
  418. x: 6.357518373344192
  419. y: 241.58087147858419
  420. selected: false
  421. sourcePosition: right
  422. targetPosition: left
  423. type: custom
  424. width: 244
  425. - data:
  426. context:
  427. enabled: false
  428. variable_selector: []
  429. desc: 故事概览
  430. model:
  431. completion_params:
  432. temperature: 0.7
  433. mode: chat
  434. name: gemma2
  435. provider: ollama
  436. prompt_template:
  437. - id: cf91162c-0f57-4f8d-b404-9b32316d7336
  438. role: system
  439. text: '你是一名作家,你现在的任务是概述小说的主要情节。
  440. 具体目标:参考下面的已知小说信息,提供一个简洁的故事概览,包括起始事件、主要冲突、高潮和结局。
  441. 输出规范要求:300字以内的故事概述,突出主要转折点和冲突。
  442. -------------下面是已知小说信息------------
  443. 小说类型:{{#1724159427762.type#}}
  444. 相关元素:{{#1724159427762.element#}}
  445. 故事背景:{{#1724222200431.text#}}'
  446. selected: false
  447. title: 故事概览
  448. type: llm
  449. variables: []
  450. vision:
  451. enabled: false
  452. height: 177
  453. id: '1724222941382'
  454. position:
  455. x: 298.2756640441767
  456. y: 241.58087147858419
  457. positionAbsolute:
  458. x: 298.2756640441767
  459. y: 241.58087147858419
  460. selected: false
  461. sourcePosition: right
  462. targetPosition: left
  463. type: custom
  464. width: 244
  465. - data:
  466. context:
  467. enabled: false
  468. variable_selector: []
  469. desc: 章节大纲
  470. model:
  471. completion_params:
  472. temperature: 0.7
  473. mode: chat
  474. name: gemma2
  475. provider: ollama
  476. prompt_template:
  477. - id: 3bbf57eb-d139-4d23-815d-b972035f03fb
  478. role: system
  479. text: '你是一名作家,你现在的任务是制定小说的章节大纲。
  480. 具体目标:参考下面的已知小说信息,规划每一章节的重点内容和目标。
  481. 输出规范要求:输出{{#1724159427762.chapter_count#}}个章节,每章包含章节标题和名称。
  482. ---------------下面是已知小说信息------------
  483. 故事概览:{{#1724222941382.text#}}
  484. 主要角色和背景:{{#1724159722707.text#}}
  485. '
  486. selected: false
  487. title: 章节大纲
  488. type: llm
  489. variables: []
  490. vision:
  491. enabled: false
  492. height: 177
  493. id: '1724224003000'
  494. position:
  495. x: 889.6485637527737
  496. y: 241.58087147858419
  497. positionAbsolute:
  498. x: 889.6485637527737
  499. y: 241.58087147858419
  500. selected: false
  501. sourcePosition: right
  502. targetPosition: left
  503. type: custom
  504. width: 244
  505. - data:
  506. context:
  507. enabled: false
  508. variable_selector: []
  509. desc: 第一章
  510. model:
  511. completion_params:
  512. temperature: 0.7
  513. mode: chat
  514. name: gemma2
  515. provider: ollama
  516. prompt_template:
  517. - id: 2efd975d-8818-4864-a6f8-8fa0fe13b70e
  518. role: system
  519. text: '你是一名作家,你的任务是创作小说的第一章。
  520. 具体目标:参考小说的已知信息,写出引人入胜的第一章,设定故事背景、引入主要角色。
  521. 输出规范要求:大约{{#1724159427762.chapter_zifu_num#}}字,风格符合整篇小说设定的背景和主题。要包含章节标题和章节内容。中文回复。
  522. '
  523. - role: user
  524. text: '---------------下面是已知小说信息------------
  525. 故事概览:{{#1724222941382.text#}}
  526. 写作特点:{{#1724159427762.features#}}
  527. 主要角色和背景:{{#1724159722707.text#}}
  528. 章节大纲:{{#1724224003000.text#}}'
  529. selected: false
  530. title: 第一章
  531. type: llm
  532. variables: []
  533. vision:
  534. enabled: false
  535. height: 177
  536. id: '1724225313253'
  537. position:
  538. x: 1193.788123088926
  539. y: 278.8887084417923
  540. positionAbsolute:
  541. x: 1193.788123088926
  542. y: 278.8887084417923
  543. selected: false
  544. sourcePosition: right
  545. targetPosition: left
  546. type: custom
  547. width: 244
  548. - data:
  549. desc: ''
  550. instruction: '根据小说的章节信息生成一个JSON对象,Example:{
  551. "chapter_dagangs":["章节标题:章节内容","章节标题:章节内容"]
  552. }
  553. chapter_dagangs是一个数组,每个元素包含章节的标题和内容。
  554. '
  555. model:
  556. completion_params:
  557. temperature: 0.7
  558. mode: chat
  559. name: gemma2
  560. provider: ollama
  561. parameters:
  562. - description: 章节大纲数组
  563. name: chapter_dagangs
  564. required: false
  565. type: array[string]
  566. query:
  567. - '1724224003000'
  568. - text
  569. reasoning_mode: prompt
  570. selected: false
  571. title: 提取章节大纲列表
  572. type: parameter-extractor
  573. variables: []
  574. height: 143
  575. id: '1724229051754'
  576. position:
  577. x: 1790.2461793411233
  578. y: 241.58087147858419
  579. positionAbsolute:
  580. x: 1790.2461793411233
  581. y: 241.58087147858419
  582. selected: false
  583. sourcePosition: right
  584. targetPosition: left
  585. type: custom
  586. width: 244
  587. - data:
  588. cases:
  589. - case_id: 'true'
  590. conditions:
  591. - comparison_operator: '>'
  592. id: fc8f5e36-d56c-42fa-b20b-803330b62aa1
  593. value: '0'
  594. varType: number
  595. variable_selector:
  596. - '1724160609005'
  597. - index
  598. id: 'true'
  599. logical_operator: and
  600. desc: ''
  601. isInIteration: true
  602. isIterationStart: true
  603. iteration_id: '1724160609005'
  604. selected: false
  605. title: 条件分支
  606. type: if-else
  607. extent: parent
  608. height: 185
  609. id: '1724234539814'
  610. parentId: '1724160609005'
  611. position:
  612. x: 117
  613. y: 85
  614. positionAbsolute:
  615. x: 1756.1874875601834
  616. y: 340.6557646854409
  617. selected: false
  618. sourcePosition: right
  619. targetPosition: left
  620. type: custom
  621. width: 244
  622. zIndex: 1001
  623. - data:
  624. context:
  625. enabled: true
  626. variable_selector:
  627. - '1724159427762'
  628. - chapter_zifu_num
  629. desc: ''
  630. isInIteration: true
  631. iteration_id: '1724160609005'
  632. model:
  633. completion_params:
  634. temperature: 0.7
  635. mode: chat
  636. name: gemma2
  637. provider: ollama
  638. prompt_template:
  639. - id: 5c4a3648-24a0-45a8-bc78-a5b71e43bd24
  640. role: system
  641. text: '你是一名作家,你的任务是完成【待完成章节】部分的章节的创作。
  642. 具体目标:根据大纲完成创作,确保故事的连续和逻辑性。完成章节{{#1724160609005.item#}}内容的创作。
  643. 输出规范要求:约{{#context#}}个字,保证故事节奏和风格的一致性。要输出章节标题和章节内容,格式:‘章节标题...:章节内容...’。中文回复。
  644. --------------下面是已知小说信息------------
  645. 故事概览:{{#1724222941382.text#}}
  646. 主要角色和背景:{{#1724159722707.text#}}
  647. 写作特点和风格:{{#1724159427762.features#}}
  648. 章节大纲:{{#1724224003000.text#}}
  649. 【待完成章节】{{#1724160609005.item#}}
  650. '
  651. selected: false
  652. title: 其他章节内容
  653. type: llm
  654. variables: []
  655. vision:
  656. enabled: false
  657. extent: parent
  658. height: 143
  659. id: '1724234821042'
  660. parentId: '1724160609005'
  661. position:
  662. x: 590.4318958188042
  663. y: 85
  664. positionAbsolute:
  665. x: 2229.6193833789875
  666. y: 340.6557646854409
  667. selected: false
  668. sourcePosition: right
  669. targetPosition: left
  670. type: custom
  671. width: 244
  672. zIndex: 1002
  673. - data:
  674. context:
  675. enabled: false
  676. variable_selector: []
  677. desc: ''
  678. isInIteration: true
  679. iteration_id: '1724160609005'
  680. model:
  681. completion_params:
  682. temperature: 0.7
  683. mode: chat
  684. name: gemma2
  685. provider: ollama
  686. prompt_template:
  687. - id: 1a3a5741-56a8-46f4-8c3c-c38e7693df63
  688. role: system
  689. text: '你是一名小说审核,你的任务是审核下面的小说内容,找出不符合逻辑或者不够好的地方。并给出建议。
  690. 输出格式要求:
  691. “”“
  692. 修改建议:xxxxx
  693. ”“”
  694. 中文回复。
  695. '
  696. - role: user
  697. text: '以下是你要审核的小说:
  698. {{#1724234821042.text#}}'
  699. selected: false
  700. title: 章节审核
  701. type: llm
  702. variables: []
  703. vision:
  704. enabled: false
  705. extent: parent
  706. height: 143
  707. id: '1724345102373'
  708. parentId: '1724160609005'
  709. position:
  710. x: 895.8824245199339
  711. y: 85
  712. positionAbsolute:
  713. x: 2535.0699120801173
  714. y: 340.6557646854409
  715. selected: false
  716. sourcePosition: right
  717. targetPosition: left
  718. type: custom
  719. width: 244
  720. zIndex: 1002
  721. - data:
  722. context:
  723. enabled: false
  724. variable_selector: []
  725. desc: ''
  726. isInIteration: true
  727. iteration_id: '1724160609005'
  728. model:
  729. completion_params:
  730. temperature: 0.7
  731. mode: chat
  732. name: gemma2
  733. provider: ollama
  734. prompt_template:
  735. - id: a96b281e-d078-449d-ad08-006f772e21a9
  736. role: system
  737. text: '根据下面小说章节的修改建议,对小说章节进行完善和修改。
  738. 返回格式要求:返回修改好的小说章节。中文回复。
  739. '
  740. - id: 3040c4f8-206b-494e-94de-d5d731cf4836
  741. role: user
  742. text: '小说章节内容:{{#1724234821042.text#}}
  743. 修改建议:{{#1724345102373.text#}}
  744. '
  745. selected: false
  746. title: LLM 9
  747. type: llm
  748. variables: []
  749. vision:
  750. enabled: false
  751. extent: parent
  752. height: 143
  753. id: '1724345707464'
  754. parentId: '1724160609005'
  755. position:
  756. x: 1200
  757. y: 85
  758. positionAbsolute:
  759. x: 2839.1874875601834
  760. y: 340.6557646854409
  761. selected: false
  762. sourcePosition: right
  763. targetPosition: left
  764. type: custom
  765. width: 244
  766. zIndex: 1002
  767. - data:
  768. context:
  769. enabled: false
  770. variable_selector: []
  771. desc: ''
  772. model:
  773. completion_params:
  774. temperature: 0.7
  775. mode: chat
  776. name: gemma2
  777. provider: ollama
  778. prompt_template:
  779. - id: 0b321168-973d-43dd-ab2f-4ffac07f1349
  780. role: system
  781. text: '你是一名小说审核,你的任务是对下面的小说进行审核,给出修改建议。中文回复。
  782. '
  783. - id: 6f30d6d8-38b1-4312-8641-255913814844
  784. role: user
  785. text: '
  786. 要审核的小说内容如下:
  787. {{#1724169251517.output#}}'
  788. selected: false
  789. title: 修改建议
  790. type: llm
  791. variables: []
  792. vision:
  793. enabled: false
  794. height: 143
  795. id: '1724346159780'
  796. position:
  797. x: 3288.342027657574
  798. y: -130.06431854542257
  799. positionAbsolute:
  800. x: 3288.342027657574
  801. y: -130.06431854542257
  802. selected: false
  803. sourcePosition: right
  804. targetPosition: left
  805. type: custom
  806. width: 244
  807. - data:
  808. context:
  809. enabled: false
  810. variable_selector: []
  811. desc: ''
  812. model:
  813. completion_params:
  814. temperature: 0.7
  815. mode: chat
  816. name: lite-32k
  817. provider: volcengine_maas
  818. prompt_template:
  819. - id: eea89eda-40c7-4562-aef5-67f09d3c1cf7
  820. role: system
  821. text: '你的任务是根据小说的修改建议对小说进行完善、修改,使其达到要求。
  822. 任务:根据建议,重写下面待完善的小说。
  823. 目标:返回重写后的整篇小说。
  824. 返回格式要求:你要返回完整、修改后的小说整篇内容。
  825. '
  826. - id: 52a3fa5f-ade9-4119-b49b-58245b9f5566
  827. role: user
  828. text: '待完善小说内容是:
  829. {{#1724169251517.output#}}
  830. 小说修改建议:
  831. {{#1724346159780.text#}}
  832. '
  833. selected: false
  834. title: 完善小说
  835. type: llm
  836. variables: []
  837. vision:
  838. enabled: false
  839. height: 143
  840. id: '1724346394465'
  841. position:
  842. x: 3653.0090804133365
  843. y: -130.06431854542257
  844. positionAbsolute:
  845. x: 3653.0090804133365
  846. y: -130.06431854542257
  847. selected: false
  848. sourcePosition: right
  849. targetPosition: left
  850. type: custom
  851. width: 244
  852. viewport:
  853. x: 218.43058816414282
  854. y: 166.9688453821999
  855. zoom: 0.25

好了,这期就说到这里,我是马丁,下期再见~


本文转载自: https://blog.csdn.net/2401_84664550/article/details/141529353
版权归原作者 马丁代码 所有, 如有侵权,请联系我们删除。

“【AI写小说】使用AI写小说的一些体会”的评论:

还没有评论