Додає відповіді штучного інтелекту в Brave Search (на базі GPT-4o!)
Це версії цього скрипту, де код був змінений. Показати всі версії.
Refactored show.reply() to use forEach loop for dynamic button creation ↞ [auto-sync from adamlui/chatgpt-apps]
show.reply()
forEach
adamlui/chatgpt-apps
Improved update.tooltip() for easier maintenance
update.tooltip()
± Added chatbarBtnTypes ± Replaced regex in update pos routine w/ cornerBtnTypes check
chatbarBtnTypes
cornerBtnTypes
Shortened buttonType to btnType in update.tooltip() ↞ [auto-sync from adamlui/chatgpt-apps]
buttonType
btnType
Added insufficient balance as Free Chat API fail flag ↞ [auto-sync from adamlui/chatgpt-apps]
Added Streaming switch state update w/ Proxy toggle + on Settings open ↞ [auto-sync from adamlui/chatgpt-apps]
Corrected selector in appAlert() ↞ [auto-sync from adamlui/chatgpt-apps]
appAlert()
Added Copy buttons ↞ [auto-sync from adamlui/chatgpt-apps]
Added 'invalid_request_error' to Free Chat API fail flags ↞ [auto-sync from adamlui/chatgpt-apps]
'invalid_request_error'
Separated appAlert() arg in dataProcess.text() into 2 for proper handling ↞ [auto-sync from adamlui/chatgpt-apps]
dataProcess.text()
Alphabetizezd dataProcess methods for improved readability ↞ [auto-sync from adamlui/chatgpt-apps]
dataProcess
Updated dataProcess.stream() to only use fail flags from active API ↞ [auto-sync from adamlui/chatgpt-apps]
dataProcess.stream()
Tweaked rqPrompt to avoid AIchatOS detection ↞ [auto-sync from adamlui/chatgpt-apps]
rqPrompt
Refined get methods to time-out call api.tryNew() only if no prev err + untried APIs remain ↞ [auto-sync from adamlui/chatgpt-apps]
get
api.tryNew()
Removed unnecessary braces ↞ [auto-sync from adamlui/chatgpt-apps]
Moved rqPrompt init out of return statement in get.related(queries) for readability ↞ [auto-sync from adamlui/chatgpt-apps]
get.related(queries)
Removed erroneous leading in ↞ [auto-sync from ]
Shortened Review button label in About modal ↞ [auto-sync from adamlui/chatgpt-apps]
Updated Free Chat API endpoint URL ↞ [auto-sync from adamlui/chatgpt-apps]
Reversed ternary in rqPrompt for readability ↞ [auto-sync from adamlui/chatgpt-apps]
Excluded toggles/borders from opacity dim of disabled settings ↞ [auto-sync from adamlui/chatgpt-apps]
Updated button label msg key names ↞ [auto-sync from adamlui/chatgpt-apps]
Added error catching to Sogou TTS for buffer errors
± Prepended 'sgt' to Sogou var names ↞ [auto-sync from adamlui/chatgpt-apps]
Shortened rqPrompt when using Free Chat API to avoid long prompt detection ↞ [auto-sync from adamlui/chatgpt-apps]
Added font size tooltip to slider thumb ↞ [auto-sync from adamlui/chatgpt-apps]
Consolidated openAIendpoints into apis.OpenAI.endpoints ↞ [auto-sync from adamlui/chatgpt-apps]
openAIendpoints
apis.OpenAI.endpoints
Added free credit fail flag for Free Chat API ↞ [auto-sync from adamlui/chatgpt-apps]
Prepended '>> ' to dark scheme replies to emulate terminal since speech balloon tip missing ↞ [auto-sync from adamlui/chatgpt-apps]
Moved fail flags from dataProcess methods to apis
apis
± Replaced AIchatOS key ref w/ caller.api for easier maintenance ± Updated GPTforLove condition to rely on new failFlags from apis ↞ [auto-sync from adamlui/chatgpt-apps]
caller.api
failFlags
Hid GitHub button if Feedback modal summoned from About modal ↞ [auto-sync from adamlui/chatgpt-apps]
Added Render 404 check to dataProcess methods ↞ [auto-sync from adamlui/chatgpt-apps]
Moved headers from api.createHeaders() to apis for improved maintainability ↞ [auto-sync from adamlui/chatgpt-apps]
api.createHeaders()
Converted expecctedOrigin.headers keys in apis to title-hyphen case
expecctedOrigin.headers
... for easier maintenance ↞ [auto-sync from adamlui/chatgpt-apps]
Added accept to expectedOrigin.headers in apis ↞ [auto-sync from adamlui/chatgpt-apps]
accept
expectedOrigin.headers
Colored version num in light mode About modal ↞ [auto-sync from adamlui/chatgpt-apps]
Replaced show.reply.submitSrc w/ simpler .userInteracted, refined auto-focus conditions ↞ [auto-sync from adamlui/chatgpt-apps]
show.reply.submitSrc
.userInteracted
Improved api.createPayload() readability ↞ [auto-sync from adamlui/chatgpt-apps]
api.createPayload()
Added more LLMs from Free Chat
Converted expectedOrigin API prop into obj of url + headers ↞ [auto-sync from adamlui/chatgpt-apps]
expectedOrigin
url
headers
Integrated Free Chat into api.createHeaders() ↞ [auto-sync from adamlui/chatgpt-apps]
Added Free Chat API ↞ [auto-sync from adamlui/chatgpt-apps]
Removed modal button underglow outright ↞ [auto-sync from adamlui/chatgpt-apps]
Removed modal button underglow from mobile view ↞ [auto-sync from adamlui/chatgpt-apps]
Updated GPTforLove encryption key ↞ [auto-sync from adamlui/chatgpt-apps]
Raised app div dark bg gradient 15px ↞ [auto-sync from adamlui/chatgpt-apps]
Removed no-longer used apiIDs init ↞ [auto-sync from adamlui/chatgpt-apps]
apiIDs
Merged apiIDs into apis for simplicity ↞ [auto-sync from adamlui/chatgpt-apps]
Stretched gradient of dark app div bg ↞ [auto-sync from adamlui/chatgpt-apps]
Set gradient stops of light modal bg's to fixed pos's ↞ [auto-sync from adamlui/chatgpt-apps]
Updated GPTforLove API encryption key, added more headers to api.createHeaders() ↞ [auto-sync from adamlui/chatgpt-apps]
Показати всі версії сценарію