Skip to content

Commit

Permalink
Fix hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
d0ctr committed Jul 10, 2023
1 parent d7c893b commit bea0de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/gpt-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ChatGPTHandler{
throw new Error('No chat_id specified to get context tree');
}
if (!this.context_trees_map.has(chat_id)) {
const system_prompt = (chat_id === 5000897842 || null) && `${DEFAULT_SYSTEM_PROMPT}\npeople in this chat:[name:Никита] [username:neverovskii],[name:Danila] [username:d0ctr],[name:Миша] [username:mishokll],[name:Влад] [username:vladzasyadko]`;
const system_prompt = (chat_id === -1001625731191 || null) && `${DEFAULT_SYSTEM_PROMPT}\npeople in this chat:[name:Никита] [username:neverovskii],[name:Danila] [username:d0ctr],[name:Миша] [username:mishokll],[name:Влад] [username:vladzasyadko]`;
this.context_trees_map.set(chat_id, new ContextTree(system_prompt));
}
return this.context_trees_map.get(chat_id);
Expand Down

0 comments on commit bea0de8

Please sign in to comment.