mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: 打招呼prompt不能热更新的问题
This commit is contained in:
parent
06fd121950
commit
673fd88141
1 changed files with 1 additions and 1 deletions
|
|
@ -23,9 +23,9 @@ const newFetch = (url, options = {}) => {
|
||||||
|
|
||||||
return fetch(url, mergedOptions)
|
return fetch(url, mergedOptions)
|
||||||
}
|
}
|
||||||
const question = Config.helloPrompt || '写一段话让大家来找我聊天。类似于“有人找我聊天吗?"这种风格,轻松随意一点控制在20个字以内'
|
|
||||||
|
|
||||||
export async function generateHello () {
|
export async function generateHello () {
|
||||||
|
let question = Config.helloPrompt || '写一段话让大家来找我聊天。类似于“有人找我聊天吗?"这种风格,轻松随意一点控制在20个字以内'
|
||||||
let api = new ChatGPTAPI({
|
let api = new ChatGPTAPI({
|
||||||
apiBaseUrl: Config.openAiBaseUrl,
|
apiBaseUrl: Config.openAiBaseUrl,
|
||||||
apiKey: Config.apiKey,
|
apiKey: Config.apiKey,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue