RocketChat / Apps.RC.AI.Programmer

Generate short code snippets in various languages using LLMs within Rocket.Chat. Share directly or create pull requests on GitHub.
3 stars 1 forks source link

[Feature] Refactor with new framework and mistral API #2

Closed RyanbowZ closed 4 months ago

RyanbowZ commented 5 months ago

This PR is not based on #1 ! This is completely a new code base with an entire new framework to develop the apps on. So major part of the code has been changed, but there's no sense to check the code difference because they're not causally related.

Please directly check this commit and treat it as the primary code base that we are constructing apps on.

Issue(s)

Closed #5, #6, #7, and #8.

Acceptance Criteria fulfillment

Proposed Changes

Refactored the code logic with the new framework that supports multiple LLMs and replace the OpenAI GPT APIs with open source mistral 7b APIs, which can better follow the community regulations.

The architecture of this App is refactored to be compatible with future GPT-like LLM APIs, also better integrated with the newest rocket.chat marketplace. The architecture is made to be more robust, reliable and scalable.

Configure and deploy the RC App on the targeted private debugging server, rather than on my local server, allowing community members to access and test collaboratively.

Results

Screenshot 2024-06-09 at 10 50 32

https://github.com/RocketChat/Apps.RC.AI.Programmer/assets/63179667/8c382c1d-7a4c-4cf2-a629-aeaebd483eb6