/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 320761608fb3
 */
import { pathToFunc } from "./url.js";
/**
 * EU Production server
 */
export const ServerEu = "eu";
/**
 * Contains the list of servers available to the SDK
 */
export const ServerList = {
    [ServerEu]: "https://api.mistral.ai",
};
export function serverURLFromOptions(options) {
    let serverURL = options.serverURL;
    const params = {};
    if (!serverURL) {
        const server = options.server ?? ServerEu;
        serverURL = ServerList[server] || "";
    }
    const u = pathToFunc(serverURL)(params);
    return new URL(u);
}
export const SDK_METADATA = {
    language: "typescript",
    openapiDocVersion: "1.0.0",
    sdkVersion: "2.2.5",
    genVersion: "2.884.13",
    userAgent: "speakeasy-sdk/typescript 2.2.5 2.884.13 1.0.0 @mistralai/mistralai",
};
//# sourceMappingURL=config.js.map