Skip to content

如何接入chatGPT实现续写、总结等能力

sunsonliu edited this page Aug 22, 2023 · 3 revisions

1

编辑/src/toolbars/HookCenter.js文件,搜索ChatGpt关键词,将找到两处注释,将注释去掉,如下图 :

  1. image
  2. image

2

在实例化cherryMarkdown时传递openai的配置,如下图: image

3

在实例化cherryMarkdown时,传递工具栏的配置,在工具栏里增加chatGPT的按钮,如下图: image

Clone this wiki locally