Skip to content

Commit

Permalink
fix: add files
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent a8a1d32 commit dcb6ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/const.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { readFileSync, writeFile } from 'fs';
import path from 'path';

/** private ket to encript message, this is just a demo */
export const privateKey = 'secret key';

const filePath = 'F:/桌面/gptPorkerPrompt.txt'; // customable
const filePromptContent = readFileSync(filePath, 'utf8');
const filePath = 'gptPorkerPrompt.txt'; // customable
const filePromptContent = readFileSync(path.join(__dirname, filePath), 'utf8');
export const addCaseToGptPrompt = (str: string) => {
return new Promise((resolve, reject) => {
writeFile(filePath, filePromptContent + str, 'utf8', (err) => {
Expand Down
Empty file added utils/gptPorkerPrompt.txt
Empty file.

0 comments on commit dcb6ae8

Please sign in to comment.