Skip to content

SpreadJSHero/spreadjs-chatgpt

Repository files navigation

spreadjs-chatgpt

This is a demo that SpreadJS working with ChatGPT by Vue 3 in Vite. Main project is TypeScript, but deisnger config is JavaScript which is easier for more users copy the code.

ChatGPT setup

Please add your ChatGPT apiKey in ./src/components/openai.ts file. This is just a demo, for security reasons, openai api should be called on the backend. Don't public your apiKey.

Customize configuration

See SpreadJS 产品文档.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build