Closed TruthSearchers closed 1 year ago
I realized it burps errors whenever a unusual character is in the response. Works fine on webui though.
You can add "Code syntax highlight" by adding in run_server function:
tg_server.html_tag = ['<pre language="c++">', "</pre>"]
If you want get URLS - this may help:
tg_server.html_tag = ["", ""]
Write me if it help or not.
Currently, i use HTML markup for bot message, but it is seems cant processing some symbols properly. Thats a problem during sending links. May be some preprocessing can be added... TBC.
sd api, tts, send picture - currently, this goals is too far
Nope links (url ) still not working Plus i am noticing text generation stop after ':' colon (i think it's because of model-button_click) function and after press continue it only able to generate a single incomplete line (only for code output) So can't see whole code in single message because of it so can't tell if code syntax working Also bro you working on discord bot
Added text preprocessing. Some chars (<>#) changes to its html codes. If you know where to find more "broken" symbols - send me please. (^ and % works without replacing)
Here some problems i found just now
It's giving url now but like in a image
Same code thing (it's not generating code in single text message
It's stop generating token (text ) after loading new generation parameters preset as you loaded !
1) It's giving url now but like in a image Hmm... what do you see in webui when getting same URL? Bot didnt preprocess URLs, just send like a text. Perhaps, we need more complicated conversion of generated text to HTML... Or may be we can just cut off parse_mode="HTML".
2) Same code thing (it's not generating code in single text message)
I added code to prevent too long generation fo chat mode here:
if self.bot_mode in ["chat", "chat-restricted"]:
eos_token = '\n'
Try to replace eos_token = '\n' on eos_token = None (or eos_token = '')
3) It's stop generating token (text ) after loading new generation parameters preset as you loaded Just fixed.
No problem now Btw bro are you planning for discord bot too?
There is atready one discord bot: https://github.com/ChobPT/text-generation-webui-discord_bot
Actually that on webhook can only give output can't take input haha
I was adding TTS and sd_api_pic in telegram bot just like web ui
If you already added TTS and sd_api_pic to text-generation-webui-telegram_bot - send pull request)
Definitely gonna tell you when i completed ☺️ Just testing it for now
Hey bro You should also update it to latest web ui like end of turn replaced by turn_template , it's giving better result
I have an idea with prefix... Like # is impersonate, - , ! or $ can be replacing order prefix.
UPD. Added ! prefix to replace last bot message.
That's cool bro i like it , it will be more easy you also have to update params
'end_of_turn' to 'turn_template' according to latest ooobaboga update for more accurate responses
Hey there @innightwolfsleep got the new error hehe When i change mode to chat from admin it giving me Attribute error (changing it in telegram_config.cfg) "AttributeError : 'TelegramBotWrapper' object has no attribute 'admin_list' "
Also i noticed some wierd replies like last when i use telegram bot , it give me replies same to it , but now when i ask hey there , it says who are you, or write article it say i will write then i tap continue - topic change (did you changed the parameters?) Its working fine with older version giving perfect replies (older version)
some wierd replies like last when i use telegram bot , it give me replies same to it , but now when i ask hey there , it says who are you, or write article it say i will write then i tap continue - topic change (did you changed the parameters?) Its working fine with older versi
Added
Hey there @innightwolfsleep got the new error hehe When i change mode to chat from admin it giving me Attribute error (changing it in telegram_config.cfg) "AttributeError : 'TelegramBotWrapper' object has no attribute 'admin_list' "
fixed
Also i noticed some wierd replies like last when i use telegram bot , it give me replies same to it , but now when i ask hey there , it says who are you, or write article it say i will write then i tap continue - topic change (did you changed the parameters?) Its working fine with older version giving perfect replies (older version)
Hm... I made bunch of commits during and rework structure this holiday, so it is not easy to find problem. Can you send me "perfect" variant of script or link to last "perfect" commit?
I have tested bot just now, but didnt find a problem. Perhaps it was problem with erased "context", it is just solved.
Sure i will help gonna test the new commit , will let you know all errors
That problem still occuring here the screen shot Old response
new response coming (3 screenshots ) after the update you done yesterday
No change in models or anything everything same from parameters to etc
One more problem after pressing continue its giving output out of topic like this
This problem occuring before you changed to latest one (telegram wrapper ) I forgot to tell here
Hm... I spent about three hours to find simple answer - need to add space after "{Char}:"
Thanks @innightwolfsleep bro ,sorry i made you work hard on it. But it was cooool i loved the telegram bot Gonna check the new updated code
SileroTTS added. Cant reuse silero stright from ooba, so it is not need to acticvate silero extension.
I asked it to send reference link (i can see links in console ) , but it can't send it in telegram (it working perfectly in webui)
Code syntax highlight extension for codes Also if you can add features of using extensions of text generation web ui like sd_picture_api, TTS and send_picture one that would be amazing bro