arakoodev / EdgeChains

EdgeChains.js is Full-Stack GenAI library. Front-end, backend, apis, prompt management, distributed computing. All core prompts & chains are managed declaratively in jsonnet (and not hidden in classes)
https://www.arakoo.ai/
GNU Affero General Public License v3.0
349 stars 70 forks source link

Fix Chain Execution #57

Open pizzaboi21 opened 1 year ago

pizzaboi21 commented 1 year ago

Background - Edgechains are executed through Flyfly CLI which is using jbang to compile and run the chains.

Steps to replicate and verify the issue:-

  1. Go to BuildAndRun Action and download the latest artifact.
  2. The Script folder will contain 2 JARs and 1 java file. This java file is our chain.
  3. Open Script folder's directory in cmd/powershell and execute this command java -jar flyfly.jar jbang Flyopenaiwiki.java Edgechain.jar
  4. If the class name or package name (import com.example) will be changed, the program will not work.

Flyfly.jar is limited to executing com.example.flyopenaiwiki class only (the content does not matter, only the package and class name).

This issue can be easily fixed by making some changes in FlySpring/flyfly/src/main/java/com/flyspring/flyfly/commands/

Project time = 1 week.

g0khul commented 1 year ago

Pull request had been made here https://github.com/arakoodev/EdgeChains/pull/60