mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Update api / add a synthesize and upload_cookies endpoint (#2406)
* Add web_search function to OpenaiChat provider * GithubCopilot provider added, it need a api_key * Remove nodriver login in Gemini synthesize * Update api / add a synthesize and upload_cookies endpoint
This commit is contained in:
parent
e8bd24a25b
commit
431db7b8ea
10 changed files with 225 additions and 41 deletions
|
|
@ -73,10 +73,9 @@ class Copilot(AbstractProvider):
|
|||
else:
|
||||
access_token = conversation.access_token
|
||||
debug.log(f"Copilot: Access token: {access_token[:7]}...{access_token[-5:]}")
|
||||
debug.log(f"Copilot: Cookies: {';'.join([*cookies])}")
|
||||
websocket_url = f"{websocket_url}&accessToken={quote(access_token)}"
|
||||
headers = {"authorization": f"Bearer {access_token}", "cookie": format_cookies(cookies)}
|
||||
|
||||
headers = {"authorization": f"Bearer {access_token}"}
|
||||
|
||||
with Session(
|
||||
timeout=timeout,
|
||||
proxy=proxy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue