SYMBOL INDEX (127 symbols across 36 files) FILE: config/proxy.ts function createViteProxy (line 3) | function createViteProxy(isOpenProxy: boolean, viteEnv: ImportMetaEnv) { FILE: service/api_model.py class ApiModel (line 1) | class ApiModel: method get_api_model_name (line 14) | def get_api_model_name(cls, api_model_name: str, default_api_model_nam... method get_max_token (line 18) | def get_max_token(cls, api_model_name: str, default_max_token: int) ->... FILE: service/chatgpt_wapper.py function process (line 17) | async def process(prompt, options, memory_count, top_p, message_store, t... function _moderation_create (line 129) | def _moderation_create(params): function _moderation_create_async (line 133) | async def _moderation_create_async(params): function _chat_completions_create (line 148) | def _chat_completions_create(params): function _chat_completions_create_async (line 152) | async def _chat_completions_create_async(params): FILE: service/errors.py class Errors (line 4) | class Errors(Enum): FILE: service/main.py function config (line 46) | async def config(): function chat_process (line 59) | async def chat_process(request_data: dict): function audio_chat_process (line 83) | async def audio_chat_process(audio: UploadFile = File(...)): function init_config (line 98) | def init_config(): FILE: service/message_store.py class MessageStore (line 4) | class MessageStore: method __init__ (line 5) | def __init__(self, db_path, table_name, max_size=100000): method set (line 10) | def set(self, key, value): method get_from_key (line 15) | def get_from_key(self, key): method _delete_oldest (line 22) | def _delete_oldest(self): FILE: service/tools/openai_token_control.py function discard_overlimit_messages (line 6) | def discard_overlimit_messages(messages: list, model: str, max_token: in... function num_tokens_from_string (line 34) | def num_tokens_from_string(string: str, encoding_name: str) -> int: function num_tokens_from_messages (line 41) | def num_tokens_from_messages(messages, model="gpt-3.5-turbo"): FILE: service/whisper_wapper.py function upload_file_to_file_obj (line 16) | def upload_file_to_file_obj(upload_file: UploadFile, file_obj: Optional[... function process_audio_api (line 25) | async def process_audio_api(audio, timeout, model="whisper-1"): function _create (line 58) | def _create(params): function process_audio_local (line 62) | async def process_audio_local(audio, audio_tmp_path, model_path, local_w... function _local_create (line 115) | def _local_create(params): function _create_async (line 137) | async def _create_async(params, func): FILE: src/api/index.ts function fetchChatConfig (line 4) | function fetchChatConfig() { function fetchChatAPIProcess (line 10) | function fetchChatAPIProcess( function fetchAudioChatAPIProcess (line 33) | function fetchAudioChatAPIProcess( FILE: src/hooks/useBasicLayout.ts function useBasicLayout (line 3) | function useBasicLayout() { FILE: src/hooks/useIconRender.ts type IconConfig (line 5) | interface IconConfig { type IconStyle (line 11) | interface IconStyle { FILE: src/hooks/useLanguage.ts function useLanguage (line 6) | function useLanguage() { FILE: src/hooks/useTheme.ts function useTheme (line 6) | function useTheme() { FILE: src/locales/index.ts function t (line 24) | function t(key: string) { function setLocale (line 28) | function setLocale(locale: Language) { function setupI18n (line 32) | function setupI18n(app: App) { FILE: src/main.ts function bootstrap (line 8) | async function bootstrap() { FILE: src/plugins/assets.ts function naiveStyleOverride (line 8) | function naiveStyleOverride() { function setupAssets (line 14) | function setupAssets() { FILE: src/router/index.ts function setupRouter (line 46) | async function setupRouter(app: App) { FILE: src/store/index.ts function setupStore (line 6) | function setupStore(app: App) { FILE: src/store/modules/app/helper.ts constant LOCAL_NAME (line 3) | const LOCAL_NAME = 'appSetting' constant ZH_CN (line 4) | const ZH_CN = 'zh-CN' constant EN_US (line 5) | const EN_US = 'en-US' constant JA_JP (line 6) | const JA_JP = 'ja-JP' type Theme (line 8) | type Theme = 'light' | 'dark' | 'auto' type Language (line 10) | type Language = typeof ZH_CN | typeof EN_US | typeof JA_JP type focusTextarea (line 12) | type focusTextarea = true type AppState (line 14) | interface AppState { function defaultSetting (line 21) | function defaultSetting(): AppState { function getLocalSetting (line 39) | function getLocalSetting(): AppState { function setLocalSetting (line 44) | function setLocalSetting(setting: AppState): void { FILE: src/store/modules/app/index.ts method setSiderCollapsed (line 9) | setSiderCollapsed(collapsed: boolean) { method setTheme (line 14) | setTheme(theme: Theme) { method setLanguage (line 19) | setLanguage(language: Language) { method setFocusTextarea (line 26) | setFocusTextarea() { method recordState (line 31) | recordState() { function useAppStoreWithOut (line 37) | function useAppStoreWithOut() { FILE: src/store/modules/chat/helper.ts constant LOCAL_NAME (line 3) | const LOCAL_NAME = 'chatStorage' function defaultState (line 5) | function defaultState(): Chat.ChatState { function getLocalState (line 10) | function getLocalState(): Chat.ChatState { function setLocalState (line 15) | function setLocalState(state: Chat.ChatState) { FILE: src/store/modules/chat/index.ts method getChatHistoryByCurrentActive (line 9) | getChatHistoryByCurrentActive(state: Chat.ChatState) { method getChatByUuid (line 16) | getChatByUuid(state: Chat.ChatState) { method addHistory (line 26) | addHistory(history: Chat.History, chatData: Chat.Chat[] = []) { method updateHistory (line 33) | updateHistory(uuid: number, edit: Partial) { method deleteHistory (line 41) | async deleteHistory(index: number) { method setActive (line 73) | async setActive(uuid: number) { method getChatByUuidAndIndex (line 78) | getChatByUuidAndIndex(uuid: number, index: number) { method addChatByUuid (line 90) | addChatByUuid(uuid: number, chat: Chat.Chat, newChatText: string) { method updateChatByUuid (line 116) | updateChatByUuid(uuid: number, index: number, chat: Chat.Chat) { method updateChatSomeByUuid (line 132) | updateChatSomeByUuid(uuid: number, index: number, chat: Partial) { method resetUserInfo (line 13) | resetUserInfo() { method recordState (line 18) | recordState() { FILE: src/typings/chat.d.ts type Chat (line 3) | interface Chat { type History (line 13) | interface History { type ChatState (line 19) | interface ChatState { type ConversationRequest (line 25) | interface ConversationRequest { type ConversationResponse (line 30) | interface ConversationResponse { FILE: src/typings/env.d.ts type ImportMetaEnv (line 3) | interface ImportMetaEnv { FILE: src/typings/global.d.ts type Window (line 1) | interface Window { FILE: src/utils/crypto/index.ts function enCrypto (line 5) | function enCrypto(data: any) { function deCrypto (line 10) | function deCrypto(data: string) { FILE: src/utils/format/index.ts function encodeHTML (line 5) | function encodeHTML(source: string) { function includeCode (line 18) | function includeCode(text: string | null | undefined) { function copyText (line 27) | function copyText(options: { text: string; origin?: boolean }) { FILE: src/utils/is/index.ts function isNumber (line 1) | function isNumber(value: T | unknown): value is number { function isString (line 5) | function isString(value: T | unknown): value is string { function isBoolean (line 9) | function isBoolean(value: T | unknown): value is bool... function isNull (line 13) | function isNull(value: T | unknown): value is null { function isUndefined (line 17) | function isUndefined(value: T | unknown): value is ... function isObject (line 21) | function isObject(value: T | unknown): value is object { function isArray (line 25) | function isArray(value: T | unknown): value is T { function isFunction (line 29) | function isFunction any | void | never>(va... function isDate (line 33) | function isDate(value: T | unknown): value is T { function isRegExp (line 37) | function isRegExp(value: T | unknown): value is T { function isPromise (line 41) | function isPromise>(value: T | unknown): value is... function isSet (line 45) | function isSet>(value: T | unknown): value is T { function isMap (line 49) | function isMap>(value: T | unknown): value is T { function isFile (line 53) | function isFile(value: T | unknown): value is T { FILE: src/utils/request/index.ts type HttpOption (line 4) | interface HttpOption { type Response (line 15) | interface Response { function http (line 21) | function http( function get (line 47) | function get( function post (line 61) | function post( FILE: src/utils/storage/local.ts type StorageData (line 3) | interface StorageData { function createLocalStorage (line 8) | function createLocalStorage(options?: { expire?: number | null; crypto?:... FILE: src/views/chat/hooks/useChat.ts function useChat (line 3) | function useChat() { FILE: src/views/chat/hooks/useCopyCode.ts function useCopyCode (line 4) | function useCopyCode() { FILE: src/views/chat/hooks/useScroll.ts type ScrollElement (line 4) | type ScrollElement = HTMLDivElement | null type ScrollReturn (line 6) | interface ScrollReturn { function useScroll (line 13) | function useScroll(): ScrollReturn { FILE: vite.config.ts function setupPlugins (line 7) | function setupPlugins(env: ImportMetaEnv): PluginOption[] {