fix read config error 🐛
This commit is contained in:
parent
0081e69728
commit
801e8c68c5
@ -1,6 +1,3 @@
|
||||
# wechatgpt
|
||||

|
||||
|
||||
# how to use
|
||||
|
||||
## prepare runtime environment
|
||||
|
@ -24,11 +24,9 @@ func init() {
|
||||
}
|
||||
|
||||
func Handler(msg *openwechat.Message) {
|
||||
if msg.IsSendByGroup() {
|
||||
err := handlers[GroupHandler].handle(msg)
|
||||
if err != nil {
|
||||
log.Errorf("handle error: %s\n", err.Error())
|
||||
return
|
||||
}
|
||||
err := handlers[GroupHandler].handle(msg)
|
||||
if err != nil {
|
||||
log.Errorf("handle error: %s\n", err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ func Completions(msg string, token string) (*string, error) {
|
||||
requestBody := ChatGPTRequestBody{
|
||||
Model: "text-davinci-003",
|
||||
Prompt: msg,
|
||||
MaxTokens: 100,
|
||||
MaxTokens: 4000,
|
||||
Temperature: 1,
|
||||
TopP: 1,
|
||||
FrequencyPenalty: 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user