March 10, 2024, 5:57 a.m. | Mingming Ma

DEV Community dev.to

Recently, ChatCraft enabled python support via WASI which is really amazing! (You can check out this PR by WangGithub0 for more details)


In that PR, I found



WASI.start(fetch(url), {
args: ["python", "-c", code],
stdout: (out) => {
console.log(out);
},
stderr: (err) => {
console.error(err);
},
})
.then((result) => {


seems each time run the fetch, but after the first time running, which is time-consuming, the later ones are significantly speeds up loading times.


After some research, I got to know …

cache chatcraft check code error fetch found python support url via

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US