FireCMS Data enhancement plugin
This plugin allows you to enhance data in your FireCMS
project, using ChatGPT.
The ChatGPT plugin allows you to use the OpenAI API to generate content using
the latest GPT models. This plugin is able to understand the structure of your
data and generate content that fits your schema.
In order to be able to use this plugin you need to have a valid subscription.
You can get a subscription in the FireCMS dashboard.
You need to specify the Firebase project id you would like to use the plugin with,
in the website. And that's it!
No need to add any subscription key or anything like that.
import React from "react";
import { FirebaseCMSApp } from "firecms";
import "typeface-rubik";
import "@fontsource/ibm-plex-mono";
import { useDataEnhancementPlugin } from "@firecms/data_enhancement";
const firebaseConfig = {
apiKey: "",
authDomain: "",
projectId: "",
storageBucket: "",
messagingSenderId: "",
appId: ""
};
export default function App() {
const dataEnhancementPlugin = useDataEnhancementPlugin({
getConfigForPath: ({ path }) => {
if (path === "books")
return true;
return false;
}
});
return <FirebaseCMSApp
name={"My Online Shop"}
plugins={[dataEnhancementPlugin]}
authentication={myAuthenticator}
collections={[
//...
]}
firebaseConfig={firebaseConfig}
/>;
}