@focus-reactive/sanity-ai-toolkit
v0.0.3
Published
An easy way to enchance your Sanity studio with ready for use GPT functions. Localization, summarization, tags and more !
Downloads
6
Readme
@focus-reactive/sanity-ai-toolkit
This is a Sanity Studio v3 plugin.
Installation
npm install @focus-reactive/sanity-ai-toolkit
Usage
Add it as a plugin in sanity.config.ts
(or .js):
import {defineConfig} from 'sanity'
import {aiToolkit} from '@focus-reactive/sanity-ai-toolkit'
export default defineConfig({
//...
plugins: [
aiToolkit({
openAiToken: process.env.SANITY_STUDIO_OPENAI_TOKEN as string,
featuresConfig: {
translate: {enabled: true},
summary: {enabled: false},
tags: {enabled: true},
},
}),
],
})
License
MIT © Alex Hramovich
Develop & test
This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.
See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.