Skip to content

Commit

Permalink
refactor: Update file paths for system instructions and chat history
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelink committed May 28, 2024
1 parent 44c276e commit 950b247
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ dist
.pnp.*

# instructions file
/utils/instructions.js
instructions.js
2 changes: 1 addition & 1 deletion copilot/aiHandler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { genAI, safetySettings } from "../utils/common.js";
import { systemInstruction, chatHistory } from "../utils/instructions.js";
import { systemInstruction, chatHistory } from "../instructions.js";

const model = genAI.getGenerativeModel({
model: "gemini-1.5-pro-latest",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup_env.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from "fs";
import { systemInstruction, chatHistory } from "./utils/instructions.js";
import { systemInstruction, chatHistory } from "./instructions.js";

const envFilePath = new URL(".env", import.meta.url);
let envContent = "";
Expand Down

0 comments on commit 950b247

Please sign in to comment.