Skip to content

目前如何使用呢 #7

Open
Open

Description

@linweiliang02

2023/10/28 18:58:13 hadler Received msg : 你好
2023/10/28 18:58:15 Received User Meeee Text Msg : 你好
panic: Post "https://api.openai.com/v1/chat/completions": proxyconnect tcp: dial tcp :0: connectex: The requested address is not valid in its context.

goroutine 11 [running]:
github.com/poorjobless/wechatbot/chatgpt.Completions({0xc0002b69c6, 0x9}, {0xc000433040, 0x6})
D:/10-28/wechatbot-main/chatgpt/chatgpt.go:31 +0x325
github.com/poorjobless/wechatbot/handlers.(*UserMessageHandler).ReplyText(0xc000237db0?, 0xc000208500)
D:/10-28/wechatbot-main/handlers/user_msg_handler.go:46 +0x1bd
github.com/poorjobless/wechatbot/handlers.(*UserMessageHandler).handle(0x4eeea0?, 0xc00009b410?)
D:/10-28/wechatbot-main/handlers/user_msg_handler.go:21 +0x25
github.com/poorjobless/wechatbot/handlers.Handler(0xc000208500)
D:/10-28/wechatbot-main/handlers/handler.go:54 +0x282
github.com/eatmoreapple/openwechat.(*Bot).syncCheck(0xc0000ec1c0)
C:/Users/linweiliang02/go/pkg/mod/github.com/eatmoreapple/openwechat@v1.4.1/bot.go:269 +0x227
github.com/eatmoreapple/openwechat.(*Bot).WebInit.func1()
C:/Users/linweiliang02/go/pkg/mod/github.com/eatmoreapple/openwechat@v1.4.1/bot.go:190 +0x79
created by github.com/eatmoreapple/openwechat.(*Bot).WebInit in goroutine 1
C:/Users/linweiliang02/go/pkg/mod/github.com/eatmoreapple/openwechat@v1.4.1/bot.go:185 +0x276

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions