Taurus icon indicating copy to clipboard operation
Taurus copied to clipboard

[ENHANCEMENT] Condense Files, use external functions

Open TecEash1 opened this issue 1 year ago • 2 comments

📋 What is the current feature?

At the moment most of the TaurusAI commands contain similar code, this code is mostly duplicated versions of each other.

🌟 How do you want it to be improved?

A utils.js file should be added and the code should be put in there and exported as async functions which can be reused in the other files. This can also be applied for the image files (such as fetching the models)

TecEash1 avatar Mar 24 '24 12:03 TecEash1

Mostly complete, could be improved on on a later date. https://github.com/TecEash1/Taurus/commit/481b217c08df8cbc78fff174c90e8ae5c5f93ff3

TecEash1 avatar Apr 11 '24 00:04 TecEash1

Due to the taurusAI commands/methods using a very similar run() function this should be added to utils.js to resolve this issue completely.

TecEash1 avatar Apr 30 '24 17:04 TecEash1