MCPcopy Create free account

hub / github.com/GaiZhenbiao/ChuanhuChatGPT / functions

Functions575 in github.com/GaiZhenbiao/ChuanhuChatGPT

↓ 251 callersFunctioni18n
(msg)
web_assets/javascript/localization.js:36
↓ 95 callersFunctiongradioApp
()
web_assets/javascript/ChuanhuChat.js:145
↓ 28 callersMethodset
Ask for a settings key Returns: Bool: Set or aborted
modules/utils.py:1044
↓ 25 callersFunctionrun
( command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live )
modules/repo.py:25
↓ 16 callersMethodcallback
(self, result)
modules/models/base_model.py:47
↓ 16 callersFunctioncloseSide
(sideArea)
web_assets/javascript/webui.js:89
↓ 15 callersMethodauto_save
(self, chatbot=None)
modules/models/base_model.py:984
↓ 13 callersFunctionget_html
(filename)
modules/webui.py:14
↓ 13 callersFunctionretrieve_proxy
1, 如果proxy = NONE,设置环境变量,并返回最新设置的代理 2,如果proxy != NONE,更新当前的代理配置,但是不更新环境变量
modules/config.py:244
↓ 12 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
modules/models/tokenization_moss.py:298
↓ 9 callersFunctionopenSide
(sideArea)
web_assets/javascript/webui.js:103
↓ 9 callersMethodrequest_mj
request midjourney api
modules/models/midjourney.py:105
↓ 8 callersFunctionconstruct_user
(text)
modules/utils.py:403
↓ 7 callersFunctioncount_token
(input_str)
modules/utils.py:168
↓ 6 callersFunctiondata_callback
(name, remaining=False)
modules/overwrites.py:113
↓ 6 callersFunctionget_history_names
(user_name="")
modules/utils.py:533
↓ 5 callersMethod__init__
(self, intermediate_size, config)
modules/models/modeling_moss.py:228
↓ 5 callersFunctionadjustSide
()
web_assets/javascript/webui.js:154
↓ 5 callersFunctionconstruct_system
(text)
modules/utils.py:410
↓ 5 callersFunctiondisableUpdateBtn_enableCancelBtn
()
web_assets/javascript/updater.js:271
↓ 5 callersFunctionget_template_names
()
modules/utils.py:603
↓ 5 callersFunctionhide_middle_chars
(s)
modules/utils.py:648
↓ 5 callersFunctionnew_auto_history_filename
(username)
modules/utils.py:868
↓ 5 callersFunctiontoggleUserInfoVisibility
(shouldHide)
web_assets/javascript/user-info.js:37
↓ 4 callersFunctionapply_rotary_pos_emb
(tensor: torch.Tensor, sin: torch.Tensor, cos: torch.Tensor)
modules/models/modeling_moss.py:52
↓ 4 callersFunctionchatbotContentChanged
(attempt = 1, force = false)
web_assets/javascript/ChuanhuChat.js:398
↓ 4 callersFunctionconstruct_assistant
(text)
modules/utils.py:414
↓ 4 callersFunctionconstruct_index
( api_key, file_src, max_input_size=4096, num_outputs=5, max_chunk_overlap=20, chunk_s
modules/index_func.py:106
↓ 4 callersFunctionconstruct_text
(role, text)
modules/utils.py:399
↓ 4 callersFunctionenableUpdateBtns
()
web_assets/javascript/updater.js:265
↓ 4 callersFunctiongenerate_prompt_string
(config_item)
modules/utils.py:978
↓ 4 callersFunctiongetUpdateStatus
()
web_assets/javascript/updater.js:250
↓ 4 callersFunctionget_first_history_name
(user_name="")
modules/utils.py:548
↓ 4 callersMethodpredict
( self, inputs, chatbot, use_websearch=False, files=None, repl
modules/models/base_model.py:595
↓ 4 callersMethodrename_chat_history
(self, filename)
modules/models/base_model.py:952
↓ 4 callersFunctionreplace_special_symbols
(string, replace_string=" ")
modules/utils.py:953
↓ 4 callersFunctionreplace_today
(prompt)
modules/utils.py:667
↓ 4 callersMethodrun
(self, ws, *args)
modules/models/spark.py:90
↓ 4 callersMethodsave
(self)
modules/utils.py:1127
↓ 4 callersFunctionsetPopupBoxPosition
()
web_assets/javascript/ChuanhuChat.js:342
↓ 4 callersFunctionset_mark
(name)
modules/overwrites.py:101
↓ 4 callersFunctionshowMask
(obj)
web_assets/javascript/webui.js:30
↓ 4 callersFunctiontoggleDarkMode
(isEnabled)
web_assets/javascript/ChuanhuChat.js:288
↓ 4 callersMethodtoken_message
(self, token_lst=None)
modules/models/base_model.py:939
↓ 3 callersMethod_encode_image_to_base64
Encode an image file to base64 string
modules/models/GoogleGemini.py:39
↓ 3 callersMethod_get_mime_type
Determine MIME type from file extension
modules/models/GoogleGemini.py:44
↓ 3 callersMethod_split_heads
(self, x, n_head, dim_head, mp_num)
modules/models/modeling_moss.py:89
↓ 3 callersFunctionadd_source_numbers
(lst, source_name="Source", use_source=True)
modules/utils.py:788
↓ 3 callersMethodclear_cuda_cache
(self)
modules/models/base_model.py:1182
↓ 3 callersFunctioncloseUpdateToast
()
web_assets/javascript/updater.js:207
↓ 3 callersMethodcount_token
get token count from input, implement if needed
modules/models/base_model.py:354
↓ 3 callersMethodfinish
(self)
modules/models/base_model.py:64
↓ 3 callersFunctiongenerate_result_string
(config_item, config_value)
modules/utils.py:1001
↓ 3 callersMethodget_base64_image
(self, image_path)
modules/models/base_model.py:1189
↓ 3 callersFunctionget_file_names_by_pinyin
(dir, filetypes=[".json"])
modules/utils.py:512
↓ 3 callersMethodget_image_type
(self, image_path)
modules/models/base_model.py:1201
↓ 3 callersFunctionget_model
( model_name, lora_model_path=None, access_key=None, temperature=None, top_p=None, sys
modules/models/models.py:17
↓ 3 callersFunctioninit_history_list
(user_name="", prepend=None)
modules/utils.py:558
↓ 3 callersFunctionlist_scripts
(scriptdirname, extension)
modules/webui.py:44
↓ 3 callersMethodload_chat_history
(self, new_history_file_path=None)
modules/models/base_model.py:1023
↓ 3 callersMethodreset
(self, remain_system_prompt=False)
modules/models/XMChat.py:33
↓ 3 callersFunctionsave_file
(filename, model)
modules/utils.py:418
↓ 3 callersFunctionsetChatList
()
web_assets/javascript/chat-list.js:15
↓ 3 callersFunctionsetLatestMessage
()
web_assets/javascript/message-button.js:187
↓ 3 callersFunctionsetPlaceholder
(model_name: str | None = "", model: BaseLLMModel | None = None)
modules/utils.py:1506
↓ 3 callersFunctionsorted_by_pinyin
(list)
modules/utils.py:492
↓ 3 callersFunctionstatusDisplayMessage
(message)
web_assets/javascript/utils.js:111
↓ 3 callersFunctionwebpath
(fn)
modules/webui.py:21
↓ 2 callersMethod_get_claude_style_history
(self)
modules/models/Claude.py:16
↓ 2 callersMethod_get_gemma_style_input
(self)
modules/models/GoogleGemma.py:59
↓ 2 callersMethod_get_glm_style_input
(self)
modules/models/Qwen.py:42
↓ 2 callersMethod_get_glm_style_input
(self)
modules/models/ChatGLM.py:76
↓ 2 callersMethod_get_groq_style_input
(self)
modules/models/Groq.py:33
↓ 2 callersMethod_get_langchain_style_history
(self)
modules/models/base_model.py:1218
↓ 2 callersMethod_get_llama_style_input
(self)
modules/models/LLaMA.py:49
↓ 2 callersMethod_get_moss_style_inputs
(self)
modules/models/MOSS.py:103
↓ 2 callersMethod_get_response
(self, stream=False)
modules/models/OpenAIVision.py:170
↓ 2 callersMethod_get_stablelm_style_input
(self)
modules/models/StableLM.py:49
↓ 2 callersMethod_prepare_request_payload
Prepare the request payload for the Gemini API
modules/models/GoogleGemini.py:61
↓ 2 callersMethod_refresh_header
(self)
modules/models/OpenAIVision.py:226
↓ 2 callersMethod_send_request
Send request to the Gemini API
modules/models/GoogleGemini.py:177
↓ 2 callersFunctionadjustMask
()
web_assets/javascript/webui.js:198
↓ 2 callersMethodauto_load
(self)
modules/models/base_model.py:1163
↓ 2 callersMethodbilling_info
get billing infomation, inplement if needed
modules/models/base_model.py:349
↓ 2 callersFunctionbindChatbotPlaceholderButtons
()
web_assets/javascript/ChuanhuChat.js:266
↓ 2 callersFunctionbuild_event_description
(id, status, trained_tokens, name=i18n("暂时未知"))
modules/train_func.py:103
↓ 2 callersFunctioncheckModel
()
web_assets/javascript/ChuanhuChat.js:222
↓ 2 callersFunctionclearHistoryHtml
()
web_assets/javascript/chat-history.js:79
↓ 2 callersFunctioncloseBox
()
web_assets/javascript/webui.js:80
↓ 2 callersFunctioncloseChatMore
()
web_assets/javascript/webui.js:24
↓ 2 callersMethoddelete_chat_history
(self, filename)
modules/models/base_model.py:1132
↓ 2 callersFunctiondisableSendBtn
()
web_assets/javascript/ChuanhuChat.js:215
↓ 2 callersFunctiondisableUpdateBtns
()
web_assets/javascript/updater.js:259
↓ 2 callersFunctionescape_markdown
Escape Markdown special characters to HTML-safe equivalents.
modules/utils.py:340
↓ 2 callersFunctionexcel_to_jsonl
(filepath, preview=False)
modules/train_func.py:17
↓ 2 callersMethodfetch_status
fetch status of current task
modules/models/midjourney.py:133
↓ 2 callersMethodfetch_url_content
(self, url)
modules/models/ChuanhuAgent.py:191
↓ 2 callersMethodforward
Generates text using the model, given the input data and generation parameters. Args: data (str): The input text for gen
modules/models/MOSS.py:156
↓ 2 callersMethodgeneration_config
(self)
modules/models/Qwen.py:26
↓ 2 callersMethodget_access_token
使用 AK,SK 生成鉴权签名(Access Token) :return: access_token,或是None(如果错误)
modules/models/ERNIE.py:22
next →1–100 of 575, ranked by callers