This repository was archived by the owner on Oct 2, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 2, 2023. It is now read-only.
KeyError: 'adaptiveCards' #7
Copy link
Copy link
Closed
Description
I have this model loaded if it matters: MetaIX/Alpaca-30B-Int4-Safetensors
...with oobabooga updated today with a git pull, and EdgeGPT the same.
I first enabled Bing output to console in your extension. First prompt was "Hey Bing, what's the current date?"
That worked as expected:
Bing:Hello, this is Bing. The current date is Monday, May 8th, 2023. 😊
Monday, May 8th, 2023
I changed the activation word to just "Bing" and used this for the second prompt:
"Bing what's the current price of gas in Florida?"
There was no output in the UI. Here's what was logged on the console:
Output generated in 10.23 seconds (1.37 tokens/s, 14 tokens, context 162, seed 886148442)
Traceback (most recent call last):
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/routes.py", line 393, in run_predict
output = await app.get_blocks().process_api(
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 1108, in process_api
result = await self.call_function(
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/blocks.py", line 929, in call_function
prediction = await anyio.to_thread.run_sync(
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/utils.py", line 490, in async_iteration
return next(iterator)
File "/root/text-generation-webui/modules/chat.py", line 253, in cai_chatbot_wrapper
for history in chatbot_wrapper(text, state):
File "/root/text-generation-webui/modules/chat.py", line 180, in chatbot_wrapper
prompt = apply_extensions('custom_generate_chat_prompt', text, state, **kwargs)
File "/root/text-generation-webui/modules/extensions.py", line 132, in apply_extensions
return EXTENSION_MAP[typ](*args, **kwargs)
File "/root/text-generation-webui/modules/extensions.py", line 84, in _apply_custom_generate_chat_prompt
return custom_generate_chat_prompt(text, state, **kwargs)
File "/root/text-generation-webui/extensions/EdgeGPT/script.py", line 168, in custom_generate_chat_prompt
asyncio.run(EdgeGPT())
File "/root/miniconda3/envs/textgen/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/root/miniconda3/envs/textgen/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/root/text-generation-webui/extensions/EdgeGPT/script.py", line 157, in EdgeGPT
response = await bot.ask(prompt=UserInput, conversation_style=ConversationStyle.creative)
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/EdgeGPT.py", line 633, in ask
async for final, response in self.chat_hub.ask_stream(
File "/root/miniconda3/envs/textgen/lib/python3.10/site-packages/EdgeGPT.py", line 523, in ask_stream
resp_txt = result_text+response["arguments"][0]["messages"][0][
KeyError: 'adaptiveCards'
Metadata
Metadata
Assignees
Labels
No labels
Activity
dblacknc commentedon May 8, 2023
I'll add that I re-loaded the UI and model and basically tried this again. It worked the second time.
GiusTex commentedon May 8, 2023
The second time did the "Bing" word work ? I don't remember if I had to close the webui to save the changes, I don't think so, but maybe sometimes it's needed. When I'm at home I'll try replicating the issue
GiusTex commentedon May 8, 2023
I updated the webui (I'm using an old version built with a one-click installer), and it works for me, both with Hey Bing and with a custom word without restarting the webui, you must have something different from my setup, maybe in the questions above. One of these days I'll also try installing again the webui, I tried in the past but I always got errors; a fresh install could help finding errors
dblacknc commentedon May 8, 2023
This is on Ubuntu 22.04.
GiusTex commentedon May 8, 2023
Can you try without
--listen --listen-port 80? I can't use it but maybe as it doesn't work outsidechatmode maybe it doesn't work withlistentooSimplegram commentedon May 28, 2023
Hello. I have the same issue and removing
--listenseems to work, not consistently though. I still gotKeyError: 'adaptiveCards'with less frequency every time I tried Hey Bing.GiusTex commentedon May 28, 2023
Simplegram commentedon May 28, 2023
Hmm, I think the latest 0.6.8 EdgeGPT extenstion update solved it. I have another issue in #12.
GiusTex commentedon Jun 2, 2023
I can't replicate the issue, and I updated the extension too, if one get the same error he can open the issue again