-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
28 lines (23 loc) · 743 Bytes
/
Copy path__init__.py
File metadata and controls
28 lines (23 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Copilot API - An unofficial Python wrapper for Microsoft Copilot consumer chat.
Basic usage — one client, conversations addressed by id:
>>> from copilot import CopilotClient
>>> client = CopilotClient()
>>> r = client.chat("Hello!") # new conversation
>>> r.text, r.conversation_id
>>> client.chat("And again?", r.conversation_id) # continue it
>>> for chunk in client.stream("Stream this"): # incremental output
... print(chunk, end="")
"""
__version__ = '1.0.0'
from .auth import load_auth
from .browser import BrowserCopilot
from .client import ChatReply, CopilotClient
from .driver import Copilot
__all__ = [
'CopilotClient',
'ChatReply',
'Copilot',
'BrowserCopilot',
'load_auth',
]