-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update AI chat handler module, safety settings, and environ…
…ment variables
- Loading branch information
Showing
5 changed files
with
17 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
DISCORD_BOT_TOKEN=your_discord_token | ||
DISCORD_CLIENT_ID=your_discord_client_id | ||
GEMINI_API_KEY=your_gemini_api_key | ||
|
||
# Example SYSTEM_INSTRUCTION: "You are a helpful assistant." | ||
SYSTEM_INSTRUCTION=your_system_instruction | ||
|
||
# Example CHAT_HISTORY: | ||
# [{"role":"user","parts":[{"text":"Oh, thanks! Yes, I am relaxing at home. What about you? Do you have any plans for today?\n"}]},{"role":"model","parts":[{"text":"{\"correction\":null,\"explanation\":null}"}]}] | ||
CHAT_HISTORY=your_chat_history | ||
GEMINI_API_KEY=your_gemini_api_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,3 @@ dist | |
|
||
# instructions file | ||
/utils/instructions.js | ||
|
||
# chatHistory file | ||
/utils/chatHistory.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
export const systemInstruction = ` | ||
You are LangX Language Copilot. An introduction to LangX Copilot, an AI-powered tool designed to enhance your language learning experience with personalized feedback and privacy-focused features. | ||
`; | ||
|
||
export const chatHistory = [ | ||
{ | ||
role: "user", | ||
parts: [ | ||
{ | ||
text: "Oh, thanks! Yes, I am relaxing at home. What about you? Do you have any plans for today?", | ||
}, | ||
], | ||
}, | ||
{ | ||
role: "model", | ||
parts: [{ text: '{"correction":null,"explanation":null}' }], | ||
}, | ||
]; |