Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Agora-Lab-AI/Bing-Chat-API
/ functions
Functions
56 in github.com/Agora-Lab-AI/Bing-Chat-API
⨍
Functions
56
◇
Types & classes
10
↓ 9 callers
Method
close
(self)
src/bing_chat/chathub.py:284
↓ 9 callers
Function
p_hist
(*args, **kwargs)
src/bing_chat/main.py:85
↓ 8 callers
Method
files
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 callers
Function
append_identifier
(msg: dict)
src/bing_chat/utilities.py:11
↓ 5 callers
Method
create
( proxy: str | None = None, cookies: list[dict] | None = None, )
src/bing_chat/BingGPT.py:35
↓ 4 callers
Function
guess_locale
()
src/bing_chat/utilities.py:33
↓ 3 callers
Method
ask
Ask a question to the bot Response: { item (dict): messages (list[dict]):
src/bing_chat/BingGPT.py:96
↓ 3 callers
Method
import_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 callers
Method
import_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 callers
Method
update
( self, prompt: str, conversation_style: CONVERSATION_STYLE_TYPE, webpage_cont
src/bing_chat/request.py:29
↓ 2 callers
Method
ask_stream
src/bing_chat/chathub.py:96
↓ 2 callers
Function
get_ran_hex
(length: int = 32)
src/bing_chat/utilities.py:16
↓ 2 callers
Function
main
()
src/bing_chat/main.py:183
↓ 1 callers
Method
__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 callers
Function
_create_history_logger
(f)
src/bing_chat/main.py:42
↓ 1 callers
Method
_initial_handshake
(self, wss)
src/bing_chat/chathub.py:251
↓ 1 callers
Method
ask_stream
Ask a question to the bot
src/bing_chat/BingGPT.py:178
↓ 1 callers
Function
async_main
Main function
src/bing_chat/main.py:66
↓ 1 callers
Method
close
Close the connection
src/bing_chat/BingGPT.py:203
↓ 1 callers
Function
create_completer
(commands: list, pattern_str: str = "$")
src/bing_chat/main.py:38
↓ 1 callers
Method
create_image
(self)
src/bing_chat/BingUtils.py:172
↓ 1 callers
Function
create_session
()
src/bing_chat/main.py:18
↓ 1 callers
Function
get_input_async
Multiline input function.
src/bing_chat/main.py:52
↓ 1 callers
Function
get_location_hint_from_locale
(locale: str)
src/bing_chat/utilities.py:20
↓ 1 callers
Method
log_and_send_query
(self, echo: bool, echo_prompt: bool)
src/bing_chat/BingUtils.py:161
↓ 1 callers
Method
reset
Reset the conversation
src/bing_chat/BingGPT.py:226
↓ 1 callers
Method
send_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
Method
code
Extract and join any snippets of code or formatted data in the response
src/bing_chat/BingUtils.py:304
Method
code_block_formats
Extract a list of programming languages/formats used in code blocks
src/bing_chat/BingUtils.py:259
Method
code_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
Method
create
( proxy: Union[str, None] = None, cookies: Union[List[dict], None] = None, )
src/bing_chat/conversation.py:69
Method
delete_conversation
( self, conversation_id: str = None, conversation_signature: str = None, encry
src/bing_chat/chathub.py:256
Method
delete_conversation
Delete the chat in the server
src/bing_chat/BingGPT.py:209
Method
get_activity
(self)
src/bing_chat/chathub.py:85
Method
get_activity
Gets the recent activity (requires cookies)
src/bing_chat/BingGPT.py:90
Method
get_conversation
( self, conversation_id: str = None, conversation_signature: str = None, encry
src/bing_chat/chathub.py:66
Method
get_conversation
Gets the conversation history from conversation_id (requires load_conversation)
src/bing_chat/BingGPT.py:84
Method
load_conversation
Load the conversation from a file
src/bing_chat/BingGPT.py:70
Function
logger
(*args, **kwargs)
src/bing_chat/main.py:43
Method
output
The response from a completed Chatbot request
src/bing_chat/BingUtils.py:211
Method
save_conversation
Save the conversation to a file
src/bing_chat/BingGPT.py:48
Method
sources
The source names and details parsed from a completed Chatbot request
src/bing_chat/BingUtils.py:227
Method
sources_dict
The source names and details as a dictionary
src/bing_chat/BingUtils.py:238
Method
suggestions
Follow-on questions suggested by the Chatbot
src/bing_chat/BingUtils.py:311
Function
test_ask
()
test_base.py:13
Function
test_cookie_rotation
()
src/bing_chat/BingUtils.py:339
Function
test_features
()
src/bing_chat/BingUtils.py:350