()
| 790 | } |
| 791 | |
| 792 | export function getNavigatorLanguage() { |
| 793 | const l = navigator.language.toLowerCase() |
| 794 | if (['zh-hk', 'zh-mo', 'zh-tw', 'zh-cht', 'zh-hant'].includes(l)) return 'zhHant' |
| 795 | return navigator.language.substring(0, 2) |
| 796 | } |
| 797 | |
| 798 | export function isUsingChatgptWebModel(configOrSession) { |
| 799 | return isInApiModeGroup(chatgptWebModelKeys, configOrSession) |
no outgoing calls
no test coverage detected