mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 19:10:49 +08:00
15 lines
346 B
TypeScript
15 lines
346 B
TypeScript
import {openModel} from "../menu/model";
|
|
import {ai} from "../../config/ai";
|
|
|
|
export const initAI = () => {
|
|
openModel({
|
|
title: "AI",
|
|
icon: "iconSparkles",
|
|
html: ai.genHTML(),
|
|
bindEvent(modelMainElement: HTMLElement) {
|
|
ai.element = modelMainElement;
|
|
ai.bindEvent();
|
|
}
|
|
});
|
|
};
|