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

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Sr. BI Analyst

@ AkzoNobel | Pune, IN