mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
feat: chatgpt prompts
This commit is contained in:
6
src/utils.ts
vendored
6
src/utils.ts
vendored
@@ -8,10 +8,14 @@ export const DISABLE_AUTO_COMPLETE = {
|
||||
spellCheck: false
|
||||
};
|
||||
|
||||
const chatRoot = async () => {
|
||||
export const chatRoot = async () => {
|
||||
return join(await homeDir(), '.chatgpt')
|
||||
}
|
||||
|
||||
export const chatModelPath = async () => {
|
||||
return join(await chatRoot(), CHAT_MODEL_JSON);
|
||||
}
|
||||
|
||||
export const readJSON = async (path: string, defaultVal = {}) => {
|
||||
const root = await chatRoot();
|
||||
const file = await join(root, path);
|
||||
|
||||
Reference in New Issue
Block a user