diff --git a/plugins/gpt/chatgpt.go b/plugins/gpt/chatgpt.go index 1267350..f877ea7 100644 --- a/plugins/gpt/chatgpt.go +++ b/plugins/gpt/chatgpt.go @@ -31,7 +31,8 @@ func (p *GPTPlugin) setDefaultPrompt() error { } func (p *GPTPlugin) setPrompt(prompt string) error { - client, err := p.getClient() + var err error + client, err = p.getClient() if err != nil { return err }