innightwolfsleep / text-generation-webui-telegram_bot

LLM telegram bot
MIT License
103 stars 20 forks source link

SD Images not working #167

Closed iChristGit closed 10 months ago

iChristGit commented 11 months ago

I have Auto1111 enabled with --api and can generate through ooga when using the telegram bot using the emoji prefix or "send an image of X" I get this error: Output generated in 0.76 seconds (23.68 tokens/s, 18 tokens, context 1478, seed 1466696946) A fast food restaurant chain famous for its burgers, fries, and other menu items 2023-11-05 12:26:58 ERROR:send_sd_image: 'images'

What am i doing wrong?

innightwolfsleep commented 10 months ago

I've just reinstalled Auto1111 and checked - works fine.

Plz check http://127.0.0.1:7860/docs - is there "POST txt2img_post" method?

If you running sd api with ooba api or in share mode e.t.c. sd_api URL may be changed and should be set with config.json Also, there was a bug with automatic instalation A1111 with sd.webui.zip - api wasn't work properly... but I am not sure if this bug repeated.

iChristGit commented 10 months ago

I've just reinstalled Auto1111 and checked - works fine.

Plz check http://127.0.0.1:7860/docs - is there "POST txt2img_post" method?

If you running sd api with ooba api or in share mode e.t.c. sd_api URL may be changed and should be set with config.json Also, there was a bug with automatic instalation A1111 with sd.webui.zip - api wasn't work properly... but I am not sure if this bug repeated.

My problem was that I ran ooba first, Ive started automatic1111 first and then ooga, it works. I guess its hardcoded to use 7860 for SD. It all works now, Another quick question, can I remove the Bot Name: at the beggining of each message? and the buttons on the bottom? Also would like to reduce or remove the delay of 10 seconds as I get responses instantly (125 tokens /s) , is that possible through editing a line?

innightwolfsleep commented 10 months ago

Another quick question, can I remove the Bot Name: at the beggining of each message?

Perhaps, one of bot modes wiill help you.

reduce or remove the delay of 10 seconds

Here conf.py you can change flood_avoid_delay

innightwolfsleep commented 10 months ago

I guess its hardcoded to use 7860 for SD.

You can chang it in config file "sd_api_url": "http://127.0.0.1:7860",

iChristGit commented 10 months ago

I guess its hardcoded to use 7860 for SD.

You can chang it in config file "sd_api_url": "http://127.0.0.1:7860",

Thanks for the reply! I just wish I could remove the codeblock format and font (so it looks more natural like a normal message) And trying to do translation to hebrew, its not in the options, wondering if that could be done as google translate has HE-il option.

innightwolfsleep commented 10 months ago

remove the codeblock format

In conf.py change html_tag: image

And trying to do translation to hebrew

In conf.py change language_dict: image

iChristGit commented 10 months ago

remove the codeblock format

In conf.py change html_tag: image

And trying to do translation to hebrew

In conf.py change language_dict: image

Thank you! how do I edit the html_tag? what do I put there?

iChristGit commented 10 months ago

I just did ["", ""] It works! thanks