mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: time
This commit is contained in:
parent
7be0e61e14
commit
3318ac04d8
3 changed files with 65 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { Chaite } from 'chaite'
|
|||
import { intoUserMessage, toYunzai } from '../utils/message.js'
|
||||
import common from '../../../lib/common/common.js'
|
||||
import { getGroupContextPrompt } from '../utils/group.js'
|
||||
import {formatTimeToBeiJing} from '../utils/common.js'
|
||||
|
||||
export class bym extends plugin {
|
||||
constructor () {
|
||||
|
|
@ -66,6 +67,7 @@ export class bym extends plugin {
|
|||
}
|
||||
sendMessageOption.systemOverride = ChatGPTConfig.bym.presetPrefix + sendMessageOption.systemOverride
|
||||
}
|
||||
sendMessageOption.systemOverride = `Current Time: ${formatTimeToBeiJing(new Date().getTime())}\n` + sendMessageOption.systemOverride
|
||||
if (ChatGPTConfig.bym.temperature >= 0) {
|
||||
sendMessageOption.temperature = ChatGPTConfig.bym.temperature
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue