cookie-ai-cli
Version:
A command-line interface tool designed to bridge the gap between natural language processing and command-line operations.
17 lines • 505 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHeaders = void 0;
function getHeaders(settings) {
const headers = {
"Content-Type": "application/json",
};
if (settings.service === "openai") {
headers["Authorization"] = `Bearer ${settings.openai?.key}`;
}
if (settings.headers) {
Object.assign(headers, settings.headers);
}
return headers;
}
exports.getHeaders = getHeaders;
//# sourceMappingURL=get-headers.js.map
;