mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-03 19:14:51 +00:00
Debug
This commit is contained in:
parent
62c4d400e3
commit
973db569fe
1 changed files with 2 additions and 0 deletions
|
|
@ -92,7 +92,9 @@ async def gpt4_chatbot(_, ctx: Message, strings):
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
response = await fetch.post("https://duckduckgo.com/duckchat/v1/chat", headers=headers, json=data)
|
response = await fetch.post("https://duckduckgo.com/duckchat/v1/chat", headers=headers, json=data)
|
||||||
|
self.log.info(response.text)
|
||||||
messages = []
|
messages = []
|
||||||
|
self.log.info(messages)
|
||||||
for line in response.text.splitlines():
|
for line in response.text.splitlines():
|
||||||
if line.startswith('data:'):
|
if line.startswith('data:'):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue