Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

[Bug]: local variable 'message' referenced before assignment when using simplify_response #599

Closed
1 task done
Eikosa opened this issue Jul 8, 2023 · 0 comments
Closed
1 task done

Comments

@Eikosa
Copy link

Eikosa commented Jul 8, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

  File "/root/userbott/main.py", line 4923, in bing_chat
    get = await vars.bing.ask(prompt=prompt, conversation_style=ConversationStyle.creative, simplify_response=True)
  File "/usr/local/lib/python3.10/dist-packages/EdgeGPT/EdgeGPT.py", line 140, in ask
    if not message:
UnboundLocalError: local variable 'message' referenced before assignment

This error only occurs when using "simplify_response=True"

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

.

Version where the problem happens

latest version

What Python version are you running this with?

No response

What is your operating system ?

No response

Command Line Arguments

.

Console logs

.

Additional information

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant