mirror of
https://github.com/adiguno/hello-nemesis.git
synced 2026-07-22 05:37:31 +00:00
add openai setting
This commit is contained in:
parent
d13adbd2f8
commit
82672e6e99
1 changed files with 3 additions and 4 deletions
7
main.ts
7
main.ts
|
|
@ -13,10 +13,12 @@ import {
|
|||
|
||||
interface MyPluginSettings {
|
||||
mySetting: string;
|
||||
openAiKey: string;
|
||||
}
|
||||
|
||||
const DEFAULT_SETTINGS: MyPluginSettings = {
|
||||
mySetting: "default",
|
||||
openAiKey: "openAiKeyTBD",
|
||||
};
|
||||
|
||||
export default class NemesisPlugin extends Plugin {
|
||||
|
|
@ -25,11 +27,8 @@ export default class NemesisPlugin extends Plugin {
|
|||
async onload() {
|
||||
await this.loadSettings();
|
||||
|
||||
this.addRibbonIcon("dice", "Greet", () => {
|
||||
new Notice("Hello, nemesis!");
|
||||
});
|
||||
|
||||
console.log("loading plugin");
|
||||
console.log("My openai key: " + this.settings.openAiKey);
|
||||
|
||||
// This creates an icon in the left ribbon.
|
||||
const ribbonIconEl = this.addRibbonIcon(
|
||||
|
|
|
|||
Loading…
Reference in a new issue