/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import dotenv from "dotenv";
dotenv.config();
/**
 * Example usage of the @mistralai/mistralai-gcp SDK
 *
 * To run this example from the examples directory:
 * npm run build && npx tsx chatComplete.example.ts
 */

import { MistralGoogleCloud } from "@mistralai/mistralai-gcp";

const mistralGoogleCloud = new MistralGoogleCloud({
  apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});

async function main() {
  const result = await mistralGoogleCloud.chat.complete({
    model: "mistral-large-latest",
    messages: [
      {
        content:
          "Who is the best French painter? Answer in one short sentence.",
        role: "user",
      },
    ],
    responseFormat: {
      type: "text",
    },
  });

  console.log(result);
}

main().catch(console.error);
