// Requirements: npm i @gradio/client // This should return the reply from the mistral model API // Source: https://www.gradio.app/guides/getting-started-with-the-js-client import { client } from "@gradio/client"; const app = await client("https://bistromd-mistral--zr2ft.hf.space/"); const result = await app.predict("/chat", "Howdy!", 0.9, 256, 0.9, 1.2 ); console.log(result.data);