MCPcopy Create free account

hub / github.com/Agora-Lab-AI/Bing-Chat-API / functions

Functions56 in github.com/Agora-Lab-AI/Bing-Chat-API

↓ 9 callersMethodclose
(self)
src/bing_chat/chathub.py:284
↓ 9 callersFunctionp_hist
(*args, **kwargs)
src/bing_chat/main.py:85
↓ 8 callersMethodfiles
Return a sorted list of all cookie files matching .search_pattern in cls.dir_path, plus any supplied files, minus any ignored files.
src/bing_chat/BingUtils.py:34
↓ 6 callersFunctionappend_identifier
(msg: dict)
src/bing_chat/utilities.py:11
↓ 5 callersMethodcreate
( proxy: str | None = None, cookies: list[dict] | None = None, )
src/bing_chat/BingGPT.py:35
↓ 4 callersFunctionguess_locale
()
src/bing_chat/utilities.py:33
↓ 3 callersMethodask
Ask a question to the bot Response: { item (dict): messages (list[dict]):
src/bing_chat/BingGPT.py:96
↓ 3 callersMethodimport_data
Read the active cookie file and populate the following attributes: .current_file_path .current_data .image_tok
src/bing_chat/BingUtils.py:46
↓ 3 callersMethodimport_next
Cycle through to the next cookies file then import it. discard (bool): True -Mark the previous file to be ignored for the remainder
src/bing_chat/BingUtils.py:74
↓ 3 callersMethodupdate
( self, prompt: str, conversation_style: CONVERSATION_STYLE_TYPE, webpage_cont
src/bing_chat/request.py:29
↓ 2 callersMethodask_stream
src/bing_chat/chathub.py:96
↓ 2 callersFunctionget_ran_hex
(length: int = 32)
src/bing_chat/utilities.py:16
↓ 2 callersFunctionmain
()
src/bing_chat/main.py:183
↓ 1 callersMethod__init__
Arguments: prompt: Text to enter into Bing Chat style: creative, balanced, or precise content_type: "text" for Bing
src/bing_chat/BingUtils.py:105
↓ 1 callersFunction_create_history_logger
(f)
src/bing_chat/main.py:42
↓ 1 callersMethod_initial_handshake
(self, wss)
src/bing_chat/chathub.py:251
↓ 1 callersMethodask_stream
Ask a question to the bot
src/bing_chat/BingGPT.py:178
↓ 1 callersFunctionasync_main
Main function
src/bing_chat/main.py:66
↓ 1 callersMethodclose
Close the connection
src/bing_chat/BingGPT.py:203
↓ 1 callersFunctioncreate_completer
(commands: list, pattern_str: str = "$")
src/bing_chat/main.py:38
↓ 1 callersMethodcreate_image
(self)
src/bing_chat/BingUtils.py:172
↓ 1 callersFunctioncreate_session
()
src/bing_chat/main.py:18
↓ 1 callersFunctionget_input_async
Multiline input function.
src/bing_chat/main.py:52
↓ 1 callersFunctionget_location_hint_from_locale
(locale: str)
src/bing_chat/utilities.py:20
↓ 1 callersMethodlog_and_send_query
(self, echo: bool, echo_prompt: bool)
src/bing_chat/BingUtils.py:161
↓ 1 callersMethodreset
Reset the conversation
src/bing_chat/BingGPT.py:226
↓ 1 callersMethodsend_to_bing
Creat, submit, then close a Chatbot instance. Return the response
src/bing_chat/BingUtils.py:179
Function_
(event)
src/bing_chat/main.py:22
Method__init__
( self, proxy: Union[str, None] = None, async_mode: bool = False, cookies: Uni
src/bing_chat/conversation.py:13
Method__init__
(self, prompt: str, **kwargs)
src/bing_chat/BingUtils.py:331
Method__init__
( self, conversation: Conversation, proxy: str = None, cookies: Union[List[dic
src/bing_chat/chathub.py:32
Method__init__
( self, conversation_signature: str, encrypted_conversation_signature: str, cl
src/bing_chat/request.py:13
Method__init__
( self, proxy: str | None = None, cookies: list[dict] | None = None, )
src/bing_chat/BingGPT.py:22
Method__repr__
(self)
src/bing_chat/BingUtils.py:323
Method__repr__
(self)
src/bing_chat/BingUtils.py:335
Method__str__
(self)
src/bing_chat/BingUtils.py:326
Methodcode
Extract and join any snippets of code or formatted data in the response
src/bing_chat/BingUtils.py:304
Methodcode_block_formats
Extract a list of programming languages/formats used in code blocks
src/bing_chat/BingUtils.py:259
Methodcode_blocks
Return a list of code blocks (```) or snippets (`) as strings. If the response contains a mix of snippets and code blocks, return th
src/bing_chat/BingUtils.py:269
Methodcreate
( proxy: Union[str, None] = None, cookies: Union[List[dict], None] = None, )
src/bing_chat/conversation.py:69
Methoddelete_conversation
( self, conversation_id: str = None, conversation_signature: str = None, encry
src/bing_chat/chathub.py:256
Methoddelete_conversation
Delete the chat in the server
src/bing_chat/BingGPT.py:209
Methodget_activity
(self)
src/bing_chat/chathub.py:85
Methodget_activity
Gets the recent activity (requires cookies)
src/bing_chat/BingGPT.py:90
Methodget_conversation
( self, conversation_id: str = None, conversation_signature: str = None, encry
src/bing_chat/chathub.py:66
Methodget_conversation
Gets the conversation history from conversation_id (requires load_conversation)
src/bing_chat/BingGPT.py:84
Methodload_conversation
Load the conversation from a file
src/bing_chat/BingGPT.py:70
Functionlogger
(*args, **kwargs)
src/bing_chat/main.py:43
Methodoutput
The response from a completed Chatbot request
src/bing_chat/BingUtils.py:211
Methodsave_conversation
Save the conversation to a file
src/bing_chat/BingGPT.py:48
Methodsources
The source names and details parsed from a completed Chatbot request
src/bing_chat/BingUtils.py:227
Methodsources_dict
The source names and details as a dictionary
src/bing_chat/BingUtils.py:238
Methodsuggestions
Follow-on questions suggested by the Chatbot
src/bing_chat/BingUtils.py:311
Functiontest_ask
()
test_base.py:13
Functiontest_cookie_rotation
()
src/bing_chat/BingUtils.py:339
Functiontest_features
()
src/bing_chat/BingUtils.py:350