MistralAPI / client.js
thesourmango
Added JS API implementation
39d46c0
raw
history blame contribute delete
387 Bytes
// 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);