[bug fixed]caused by EdgeGPT 0.1.10 update

This commit is contained in:
RA
2023-03-26 22:33:26 +08:00
parent 9327f2c2df
commit dc4f2423b5

View File

@@ -127,9 +127,10 @@ class SydneyHub(ChatHub):
async def ask_stream(
self,
prompt: str,
wss_link: str = "wss://sydney.bing.com/sydney/ChatHub",
conversation_style: EdgeGPT.CONVERSATION_STYLE_TYPE = None,
) -> Generator[str, None, None]:
async for item in super().ask_stream(prompt=prompt, conversation_style=conversation_style):
async for item in super().ask_stream(prompt=prompt, conversation_style=conversation_style, wss_link=wss_link):
yield item