/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 2aa1080387e7
 */
import { fimComplete } from "../funcs/fimComplete.js";
import { fimStream } from "../funcs/fimStream.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class Fim extends ClientSDK {
    /**
     * Fim Completion
     *
     * @remarks
     * FIM completion.
     */
    async complete(request, options) {
        return unwrapAsync(fimComplete(this, request, options));
    }
    /**
     * Stream fim completion
     *
     * @remarks
     * Mistral AI provides the ability to stream responses back to a client in order to allow partial results for certain requests. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
     */
    async stream(request, options) {
        return unwrapAsync(fimStream(this, request, options));
    }
}
//# sourceMappingURL=fim.js.map