chatgpt-google-extension icon indicating copy to clipboard operation
chatgpt-google-extension copied to clipboard

Only Enable ChatGPT when query ends with question mark

Open jt-wang opened this issue 2 years ago • 0 comments

type

enhancement

description

Per request by #43 and #28 , and we do see ChatGPT is occasionally and increasingly out of quota, image, as well as considering many users don't wanna send everything to ChatGPT, this PR is to enable ChatGPT only when query ends with question mark. Currently it supports question marks of ASCII (English, and many languages that use this style), Chinese/Japanese, and Arabic style.

how

Checks if trimmed query ends with specific question marks.

test

Below is the manual test result to show it does support such question marks, and don't include ChatGPT result when the question mark is absent.

image image image image

jt-wang avatar Dec 06 '22 21:12 jt-wang