Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark authored Jul 3, 2024
2 parents 4f658a4 + bd2c707 commit a25395d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sha": "40b0e17", "timestamp": 1719539450}
{"sha": "40b0e17", "timestamp": 1719539450}
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1449,7 +1449,7 @@ async function requestCompletionsFromMistralAI(message, history, context, onStre

// src/llm.js
async function loadHistory(key, context) {
const initMessage = { role: "system", content: context.USER_CONFIG.SYSTEM_INIT_MESSAGE };
const initMessage = { role: "system", content: context.USER_CONFIG.SYSTEM_INIT_MESSAGE || "You are a useful assistant!" };
const historyDisable = ENV.AUTO_TRIM_HISTORY && ENV.MAX_HISTORY_LENGTH <= 0;
if (historyDisable) {
initMessage.role = ENV.SYSTEM_INIT_MESSAGE_ROLE;
Expand Down
2 changes: 1 addition & 1 deletion dist/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1719539450
1719539450

0 comments on commit a25395d

Please sign in to comment.