MCPcopy Create free account

hub / github.com/LagPixelLOL/ChatGPTCLIBot / functions

Functions339 in github.com/LagPixelLOL/ChatGPTCLIBot

↓ 141 callersMethodsize
main/interface/data/Messages.cpp:65
↓ 114 callersFunctionprintln_err
* Print a string as an error(Red). */
main/interface/util/TermUtils.cpp:73
↓ 100 callersMethodend
main/interface/data/Messages.cpp:77
↓ 69 callersMethodempty
main/interface/data/Messages.cpp:69
↓ 64 callersFunctionprintln_info
* Print a string as an info(Gray). */
main/interface/util/TermUtils.cpp:59
↓ 63 callersMethodwhat
main/interface/util/FileUtils.cpp:36
↓ 62 callersMethodbegin
main/interface/data/Messages.cpp:73
↓ 47 callersMethodpush_back
main/interface/data/Messages.cpp:41
↓ 44 callersFunctionto_string
main/interface/model/FineTune.cpp:80
↓ 34 callersMethoderase
main/interface/data/Messages.cpp:97
↓ 30 callersFunctionprint_cs
* Initialize the terminal and print a string that has color codes embedded in it. */
main/interface/util/TermUtils.cpp:31
↓ 29 callersFunctionprintln_warn
* Print a string as a warning(Yellow). */
main/interface/util/TermUtils.cpp:66
↓ 20 callersMethodemplace_back
main/interface/data/Messages.cpp:49
↓ 15 callersMethodgetType
main/interface/cpp-terminal/color.cpp:29
↓ 15 callersFunctionutf8_to_utf32
main/interface/cpp-terminal/platforms/conversion.hpp:59
↓ 14 callersFunctionget_key
* Get the first API key from api_keys. * @return The API key, could be an empty string. */
main/interface/network/APIKey.cpp:58
↓ 13 callersFunctionprint_clr
* Print a string with a color. */
main/interface/util/TermUtils.cpp:45
↓ 11 callersFunctionread_text_file
* Read a file to a string. * @param path Path to the file. * @throw file::file_error If the file cannot be opened or read. * @return Fi
main/interface/util/FileUtils.cpp:51
↓ 9 callersMethodpop_back
main/interface/data/Messages.cpp:57
↓ 9 callersFunctionprint_enter_next_cycle
main/GPTMain.cpp:261
↓ 9 callersFunctionread_raw_u
main/interface/cpp-terminal/platforms/inputU.cpp:238
↓ 9 callersMethodto24bits
Nothing to do
main/interface/cpp-terminal/color.cpp:75
↓ 9 callersFunctionwrite_text_file
* Write a string to a file. * @param content The string to write. * @param path Path to the file. * @throw file::file_error If the file
main/interface/util/FileUtils.cpp:82
↓ 7 callersMethodget_h
main/interface/cpp-terminal/window.cpp:23
↓ 7 callersFunctionprint_api_response
main/FineTuneHelper.cpp:14
↓ 6 callersFunctionexists
main/interface/util/FileUtils.cpp:209
↓ 6 callersMethodset_char
main/interface/cpp-terminal/window.cpp:25
↓ 6 callersMethodto4bits
Convert 24bits and 8bits to 4bits
main/interface/cpp-terminal/color.cpp:44
↓ 5 callersFunctioncheck_err_obj
* Check if the json object has an error object, if so, print the error message and set the status. * @param json_to_check The json object to chec
main/interface/network/APIKey.cpp:123
↓ 5 callersFunctiondisplay_length
* Calculate the display length of a string, i.e. the number of columns it occupies on the terminal. * Some characters occupy 2 columns, e.g. Chinese
main/interface/cpp-terminal/prompt.cpp:132
↓ 5 callersFunctionget_enc_cache
main/interface/util/TokenUtils.cpp:127
↓ 5 callersMethodhasResponse
main/interface/data/Exchange.cpp:117
↓ 5 callersFunctionhttp_post
main/interface/network/Request.cpp:19
↓ 5 callersMethodset_h
main/interface/cpp-terminal/window.cpp:64
↓ 5 callersMethodto8bits
Convert 24bits to 8bits
main/interface/cpp-terminal/color.cpp:61
↓ 4 callersFunctioncurrentTimeMillis
main/interface/util/SystemUtils.cpp:20
↓ 4 callersFunctionget_multiline
* Get multiple lines of input from the user. * Press Ctrl + N to enter a new line. * Note: Remember to do error handling by catching std::ex
main/interface/util/TermUtils.cpp:18
↓ 4 callersFunctionhttp_get
main/interface/network/Request.cpp:13
↓ 4 callersFunctionis_new_api
main/interface/network/Network.cpp:34
↓ 4 callersMethodis_new_api
main/Config.cpp:291
↓ 4 callersMethodperform
main/interface/network/RequestObject.cpp:107
↓ 4 callersFunctionprint_m_clr
* Print a string gradually changing colors. * @param colors The colors to interpolate between. * @param by_line Whether to print the color c
main/interface/util/TermUtils.cpp:118
↓ 4 callersFunctionvector_to_string
* Converts a vector of char into a string. */
main/interface/cpp-terminal/platforms/conversion.hpp:88
↓ 3 callersFunctionb64_str_to_float
main/interface/util/Base64.h:24
↓ 3 callersMethodclear
main/interface/data/Messages.cpp:61
↓ 3 callersFunctioncodepoint_to_utf8
main/interface/cpp-terminal/platforms/conversion.hpp:32
↓ 3 callersFunctioncosine_similarity
main/interface/model/Embedding.cpp:9
↓ 3 callersFunctioncreate_folder
main/FineTuneHelper.cpp:18
↓ 3 callersFunctionembeddings_to_b64_json_array
main/interface/util/Base64.h:16
↓ 3 callersFunctionget_token_count
main/interface/util/TokenUtils.cpp:20
↓ 3 callersFunctionget_tokenizer
main/interface/util/TokenUtils.cpp:54
↓ 3 callersFunctioninitialize_or_throw
main/interface/util/TermUtils.cpp:161
↓ 3 callersFunctionis_a_tty
main/interface/cpp-terminal/platforms/tty.cpp:11
↓ 3 callersFunctionms_to_formatted_time
main/interface/util/SystemUtils.cpp:39
↓ 3 callersFunctionp_on_invalid_key
main/GPTMain.cpp:561
↓ 3 callersMethodprint_str
main/interface/cpp-terminal/window.cpp:81
↓ 3 callersMethodrender
main/interface/cpp-terminal/window.cpp:193
↓ 3 callersMethodset_exception
main/interface/network/RequestObject.cpp:170
↓ 3 callersFunctionset_key
* Set the API key, will clear all previous keys. */
main/interface/network/APIKey.cpp:72
↓ 3 callersFunctionsplit_text
* Split a text into chunks. * @param text The text to split. * @param tokens_per_chunk The maximum number of tokens per chunk, tokenizer is
main/interface/data/Document.cpp:144
↓ 3 callersFunctionto_string
main/interface/util/PromptUtils.cpp:30
↓ 3 callersFunctionutf32_to_utf8
main/interface/cpp-terminal/platforms/conversion.hpp:77
↓ 2 callersFunctionappend_time
main/interface/util/PromptUtils.cpp:55
↓ 2 callersFunctionasync_find_similar
main/interface/util/PromptUtils.cpp:59
↓ 2 callersMethodclear
main/interface/cpp-terminal/window.cpp:182
↓ 2 callersFunctionconstruct_from_back
main/interface/util/PromptUtils.h:70
↓ 2 callersFunctionconstruct_reference
* Construct long-term memory reference for general chatting. * @return The constructed initial prompt. */
main/interface/util/PromptUtils.cpp:100
↓ 2 callersFunctionerase_except_back
main/interface/util/PromptUtils.h:54
↓ 2 callersFunctionfrom_string
main/interface/model/FineTune.cpp:89
↓ 2 callersFunctionget_embeddings
* Get embeddings for a list of text. * @param texts The texts to get embeddings for. * @param api_key The API key to use. * @param key_
main/interface/model/Embedding.cpp:32
↓ 2 callersFunctionget_max_tokens
main/interface/util/TokenUtils.cpp:89
↓ 2 callersMethodget_model
main/Config.cpp:282
↓ 2 callersFunctionget_pre_prompt
main/interface/util/PromptUtils.cpp:180
↓ 2 callersFunctionget_time_info
main/interface/util/SystemUtils.cpp:28
↓ 2 callersFunctionhandle_streamed_response
main/interface/network/Network.cpp:38
↓ 2 callersMethodhasANSIEscapeCode
main/interface/cpp-terminal/platforms/terminfo.cpp:59
↓ 2 callersMethodhasResponseEmbeddings
main/interface/data/Exchange.cpp:129
↓ 2 callersFunctionhash_value
main/interface/data/Exchange.cpp:83
↓ 2 callersFunctionhttp_delete
main/interface/network/Request.cpp:25
↓ 2 callersFunctionignore_line
main/interface/util/TermUtils.cpp:24
↓ 2 callersMethodload_documents
* @throw std::exception If an error occurred when loading the documents. */
main/Config.cpp:264
↓ 2 callersFunctionmulti_clr_gradual_change
* Calculate a gradual change of colors. * @param colors The colors to interpolate between, * the size of the vector must be greater than 1,
main/interface/util/TermUtils.cpp:96
↓ 2 callersMethodnext_color_str
main/Command.cpp:17
↓ 2 callersFunctionp_load_prompt
main/GPTMain.cpp:316
↓ 2 callersFunctionp_save_config
main/GPTMain.cpp:534
↓ 2 callersFunctionprint_prompt
main/GPTMain.cpp:255
↓ 2 callersFunctionprintln_clr
* Print a string with a color and a new line. */
main/interface/util/TermUtils.cpp:52
↓ 2 callersFunctionprocess_append_str
main/interface/data/Document.cpp:131
↓ 2 callersMethodreplace_all
main/interface/cpp-terminal/prompt.cpp:284
↓ 2 callersMethodto3bits
main/interface/cpp-terminal/color.cpp:31
↓ 2 callersMethodto_json
* Convert the Document object to a json object. * @return A json object containing "text" and "embeddings" fields. */
main/interface/data/Document.cpp:48
↓ 2 callersMethodto_messages
main/interface/data/ExchangeHistory.cpp:33
↓ 2 callersFunctionto_payload
main/interface/network/Network.cpp:91
↓ 2 callersFunctionupload_binary
main/FineTuneHelper.cpp:149
↓ 1 callersFunctionWindowsVersionGreater
main/interface/cpp-terminal/platforms/terminfo.cpp:11
↓ 1 callersFunctionbase64_decode
main/interface/util/Base64.cpp:53
↓ 1 callersFunctionbase64_encode
main/interface/util/Base64.cpp:16
↓ 1 callersFunctioncall_api
* Call the OpenAI API with a custom lambda function as callback. */
main/interface/network/Network.cpp:12
↓ 1 callersMethodcall_api
* Call the OpenAI API. * Note: Blocking IO operation. * @throw std::exception When an error occurred. */
main/interface/model/Completion.cpp:36
↓ 1 callersFunctioncancel_fine_tune
main/FineTuneHelper.cpp:492
next →1–100 of 339, ranked by callers