mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Fix websearch with special chars
This commit is contained in:
parent
04624f2dfa
commit
a57adbee97
2 changed files with 6 additions and 6 deletions
|
|
@ -138,7 +138,6 @@ class Copilot(AbstractProvider, ProviderModelMixin):
|
|||
if prompt is None:
|
||||
prompt = messages[-1]["content"]
|
||||
debug.log(f"Copilot: Use conversation: {conversation_id}")
|
||||
yield Parameters(**{"conversation": conversation.get_dict(), "user": user, "prompt": prompt})
|
||||
|
||||
uploaded_images = []
|
||||
if images is not None:
|
||||
|
|
@ -200,6 +199,7 @@ class Copilot(AbstractProvider, ProviderModelMixin):
|
|||
if not is_started:
|
||||
raise RuntimeError(f"Invalid response: {last_msg}")
|
||||
finally:
|
||||
yield Parameters(**{"conversation": conversation.get_dict(), "user": user, "prompt": prompt})
|
||||
yield Parameters(**{"cookies": {c.name: c.value for c in session.cookies.jar}})
|
||||
|
||||
async def get_access_token_and_cookies(url: str, proxy: str = None, target: str = "ChatAI",):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue