Skip to content

Commit ae60923

Browse files
committed
update
1 parent dbdaff9 commit ae60923

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: chatgpt.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func Chatgpt() {
109109
time.Sleep(1 * time.Second)
110110
}
111111
if regenerate_icon == true {
112-
answer := page_chatgpt.MustElementX("(//div[contains(@class, 'group w-full')])[last()]").MustText()[7:]
112+
//answer := page_chatgpt.MustElementX("(//div[contains(@class, 'group w-full')])[last()]").MustText()[7:]
113+
answer := page_chatgpt.MustElementX("(//div[contains(@class, 'group final-completion w-full')])[last()]").MustText()[7:]
113114
if strings.Contains(answer,
114115
"An error occurred. Either the engine you requested does not exist or there was another issue processing your request. If this issue persists please contact us through our help center at help.openai.com.") {
115116
relogin_chatgpt = true

Diff for: llama2.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ func Llama2() {
100100
}
101101

102102
if stop_icon_disappear == true {
103-
answer := page_llama2.MustElementX("(//div[@data-testid='bot'])[last()]").MustText()
103+
//answer := page_llama2.MustElementX("(//div[@data-testid='bot'])[last()]").MustText()
104+
answer := page_llama2.MustElementX("(//button[@data-testid='bot'])[last()]").MustText()
104105
channel_llama2 <- answer
105106
} else {
106107
channel_llama2 <- "✘✘ Llama2, Please check the internet connection and verify login status."

0 commit comments

Comments
 (0)