system prompt change (plaintext only), parse out /think
This commit is contained in:
parent
e1e017d32c
commit
b9173f4bda
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ export default (bot: Telegraf<Context>) => {
|
||||||
...({ reply_to_message_id })
|
...({ reply_to_message_id })
|
||||||
})
|
})
|
||||||
|
|
||||||
const fixedMsg = message.replace(/\/ask /, "")
|
const fixedMsg = message.replace(/\/ask /, "").replace(/\/think /, "")
|
||||||
if (fixedMsg.length < 1) {
|
if (fixedMsg.length < 1) {
|
||||||
await ctx.reply(Strings.askNoMessage, {
|
await ctx.reply(Strings.askNoMessage, {
|
||||||
parse_mode: 'Markdown',
|
parse_mode: 'Markdown',
|
||||||
|
@ -263,7 +263,7 @@ export default (bot: Telegraf<Context>) => {
|
||||||
logger.logPrompt(fixedMsg)
|
logger.logPrompt(fixedMsg)
|
||||||
|
|
||||||
const prompt = sanitizeForJson(
|
const prompt = sanitizeForJson(
|
||||||
`You are a helpful assistant called ${botName}.
|
`You are a plaintext-only, helpful assistant called ${botName}.
|
||||||
Current Date/Time (UTC): ${new Date().toLocaleString()}
|
Current Date/Time (UTC): ${new Date().toLocaleString()}
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue