Python chatbot with 3 second GitLab CI/CD pipelines and self-analysis capability

Hello! I could release this chatbot in a more proper place if I can find one. I have been testing it on my private server with 40 users for six months and it’s working pretty nicely. Latest addition is gpt-4-vision support. We are using a custom load balancer for SDXL image generation and unfortunately that is not open source, but if anyone wants to dig the commits there is code for accessing automatic1111 API directly in the history. And some API keys which have been invalidated :slight_smile:

There is no readme but maybe I’ll work on it… or more likely return the automated README generator and make it run only when defining tags. I couldn’t stand waiting for it. This thing is build for fast development, as you might see from the rate of commits. 1680 pipelines built so far on my GitLab.


Heya Brunnyh,

This is amazing! Your work on building and sustaining this chatbot truly sounds remarkable! Big cheers for sharing.

As an open-source community, we’re not only intrigued about the technology and innovation itself but appreciate the learning and growing together. The openness and sharing of your project are a big part of what can really make this community thrive!

Keep up all the good work,

~John :medal_military:

1 Like

Thanks! :slight_smile: I believe the bot is at this minimalistic stage ripe for anyone to fork the project, and via its self-analysis capabilities transform it to whatever they wish. Even I have refactored this so many times the first “production” version with this self-analysis capability vs the current one have pretty much nothing in common.

1 Like

An inconvenient limit I ran into with the newest gpt-4 preview model with 128k context length is that Mattermost has hard-coded post length limit which we now run into! Can’t paste long documents directly because of this. Of course I could make a feature that takes these documents as text files, and probably will actually. But still, this is perhaps one of those rare use cases where we really could need more than 16383 characters. Checked a random paste with this exact amount of characters and it was just below 4000 tokens. 524287 characters would be a fitting limit here!

Really cool @Bunnyh, thanks for sharing your repo! :rocket:

1 Like

I just pushed a medium refactor of the code, with some functions generalized so I could add Discord support while keeping it DRY. The Discord support is not as fully tested out yet and some features are lacking compared to Mattermost. The platforms seem really similar from the perspective of this bot application after my tweaks, but I still prefer Mattermost to keep it self-hosted! Just easier to get people testing on Discord.

It still takes a bit technical prowess to deploy yourself, but it should be trivial to select if you want to run this in Mattermost, Discord or both with the same instance.

1 Like