Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got it working, how do I set default prompts, names? #17

Open
Webslug opened this issue May 25, 2023 · 6 comments
Open

Got it working, how do I set default prompts, names? #17

Webslug opened this issue May 25, 2023 · 6 comments

Comments

@Webslug
Copy link

Webslug commented May 25, 2023

ERROR:Ignoring exception in command reset
Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 370, in reset
clear_chat_log(your_name, llamas_name, "", "","cai-chat")
TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.ext.commands.errors.HybridCommandError: Hybrid command raised an error: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given
[2023-05-26 00:40:32] [ERROR ] discord.ext.commands.bot: Ignoring exception in command reset
Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 370, in reset
clear_chat_log(your_name, llamas_name, "", "","cai-chat")
TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.ext.commands.errors.HybridCommandError: Hybrid command raised an error: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given
ERROR:Ignoring exception in command reset
Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 370, in reset
clear_chat_log(your_name, llamas_name, "", "","cai-chat")
TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.ext.commands.errors.HybridCommandError: Hybrid command raised an error: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given
[2023-05-26 00:40:47] [ERROR ] discord.ext.commands.bot: Ignoring exception in command reset
Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 842, in _do_call
return await self._callback(interaction, **params) # type: ignore
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 370, in reset
clear_chat_log(your_name, llamas_name, "", "","cai-chat")
TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\ext\commands\hybrid.py", line 438, in _invoke_with_namespace
value = await self._do_call(ctx, ctx.kwargs) # type: ignore
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\app_commands\commands.py", line 856, in _do_call
raise CommandInvokeError(self, e) from e
discord.ext.commands.errors.HybridCommandError: Hybrid command raised an error: Command 'reset' raised an exception: TypeError: clear_chat_log() takes 2 positional arguments but 5 were given

@xNul
Copy link
Owner

xNul commented May 28, 2023

Hi, I've just released an update to the bot which should fix all these errors. It's tough keeping up to date with webui because it changes so much.

@Webslug
Copy link
Author

Webslug commented Jun 5, 2023

Thanks for the update however it still does not work even with the amendmants. I keep having the following errors.

ERROR [2023-06-05 13:41:10]: Ignoring exception in on_message (Line: 515 in on_error, client.py )
Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Python\Python310\site-packages\discord\client.py", line 441, in _run_event
await coro(*args, **kwargs)
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 485, in on_message
reaction_choice = reaction_list[random.randrange(8)]
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 372, in llm_gen
"trust-remote-code": shared.args.trust_remote_code,
File "D:\AI\oobabooga\text-generation-webui\bot.py", line 351, in chatbot_wrapper_wrapper
"name2": name2,
File "D:\AI\oobabooga\text-generation-webui\modules\chat.py", line 206, in chatbot_wrapper
text, visible_text = output['internal'][-1][0], output['visible'][-1][0]
IndexError: list index out of range

I have tried 3 models so far, one was working temporarily but stopped.

I am now trying the GGML model which you recommended. This is my last attempt to try and get this working.

I'm ready to give up. So demoralized.

@Webslug Webslug changed the title Hi so many errors, can you help? Does not work anymore. Jun 5, 2023
@Webslug
Copy link
Author

Webslug commented Jun 5, 2023

I decided to try and use your install batch file this time with a fresh install. I used the GGML model which you recommended.

I followed the instructions carefully and I have a Nvidia card. My web UI works perfectly.

I kept getting this error and have concluded that this bot no longer works.

Traceback (most recent call last):
File "D:\AI\ChatLlama\ChatLLaMA\oobabooga_windows\text-generation-webui\bot.py", line 279, in
shared.model, shared.tokenizer = load_model(shared.model_name)
File "D:\AI\ChatLlama\ChatLLaMA\oobabooga_windows\text-generation-webui\modules\models.py", line 97, in load_model
output = load_func(model_name)
File "D:\AI\ChatLlama\ChatLLaMA\oobabooga_windows\text-generation-webui\modules\models.py", line 265, in llamacpp_loader
from modules.llamacpp_model import LlamaCppModel
File "D:\AI\ChatLlama\ChatLLaMA\oobabooga_windows\text-generation-webui\modules\llamacpp_model.py", line 11, in
from llama_cpp import Llama, LlamaCache
ModuleNotFoundError: No module named 'llama_cpp'

@xNul
Copy link
Owner

xNul commented Jun 5, 2023

that's strange because other people are able to use the new installers without issue. I'm trying to reproduce, but in the meantime, could you try to reinstall once more and this time, copy-paste the install log here? There might be an error with installing the llama_cpp library during installation

@xNul
Copy link
Owner

xNul commented Jun 5, 2023

I've reinstalled with the latest installer, using the GGML model that I recommended, and didn't have any issues (Windows 11 and Nvidia). Don't give up! We'll figure this out. If you prefer to talk about this in real time, you can join my Discord server https://discord.gg/TcRGDV754Y

@Webslug
Copy link
Author

Webslug commented Jun 7, 2023

Well I managed to get it working, thanks for not giving up on me.

The bot is connecting successfully and processing text so that's great news.

Is there any way to permanently save the prompt, name and llama name so I do not have to keep typing in the prompt every time I start the bot up?

Thanks again.

@Webslug Webslug changed the title Does not work anymore. I need some help please...? Jun 7, 2023
@Webslug Webslug changed the title I need some help please...? Got it working, how do I set default prompts, names? Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants