/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 2e077efe6d5e
 */

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 { MistralGCP } from "@mistralai/mistralai-gcp";

const mistralGCP = new MistralGCP({
  apiKey: "<YOUR_BEARER_TOKEN_HERE>",
});

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

  console.log(result);
}

main().catch(console.error);
