"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GitHubCopilotClient = void 0;
const http_1 = require("./http");
const copilot_1 = require("./pricing/copilot");
class GitHubCopilotClient extends http_1.HttpClient {
    constructor(apiKey = process.env.GITHUB_COPILOT_TOKEN ?? process.env.GITHUB_TOKEN) {
        super("https://api.githubcopilot.com");
        if (apiKey)
            this.setJwt(apiKey);
        this.setPrices(copilot_1.CopilotTextPricing);
    }
}
exports.GitHubCopilotClient = GitHubCopilotClient;
//# sourceMappingURL=copilot.js.map