From 4d4a24afc3eb9d55abb082d4441192d880446ace Mon Sep 17 00:00:00 2001 From: AnotiaWang Date: Tue, 18 Apr 2023 09:34:23 +0800 Subject: [PATCH] fix: language not applied to `StartTask` --- open-assistant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-assistant.go b/open-assistant.go index 0ff1881..50e2d20 100644 --- a/open-assistant.go +++ b/open-assistant.go @@ -368,7 +368,7 @@ func StartTask() error { "Cookie": model.Conf.OaCookie, "Content-Type": "application/json", }). - Get("https://open-assistant.io/api/new_task/random?lang=zh") + Get("https://open-assistant.io/api/new_task/random?lang=" + model.Conf.Language) if err != nil { return err }