Thanks to visit codestin.com
Credit goes to github.com

Skip to content

inline tool for expanding header and generating chart with table data.

License

Notifications You must be signed in to change notification settings

forkpath/editorjs-expand

Repository files navigation

Editorjs-Expand

Inline tool for expanding content with header by AI.

intro

Installation

Use your package manager to install the package editorjs-expand.

npm install editorjs-expand

yarn add editorjs-expand

Usage example

    const editor = new EditorJS({
      tools: {
        header: {
          class: Header,
          tunes: ['expand']
        },
        expand: {
          class: Expand,
          config: {
            url: 'your_ai_endpoint',
            method: 'request_method',
            model: 'gpt-3.5-turbo',
            credential: {
              'Content-Type': 'application/json',
              Authorization: 'Bearer xxxx'
            },
            genPrompts: (origin) => {
              return `What is :${origin}`
            }
          }
        }
      }
    });

About

inline tool for expanding header and generating chart with table data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors