copilot-api / src /main.ts
imseldrith's picture
Initial upload from Colab
9e27976 verified
raw
history blame contribute delete
492 Bytes
#!/usr/bin/env node
import { defineCommand, runMain } from "citty"
import { auth } from "./auth"
import { checkUsage } from "./check-usage"
import { debug } from "./debug"
import { start } from "./start"
const main = defineCommand({
meta: {
name: "copilot-api",
description:
"A wrapper around GitHub Copilot API to make it OpenAI compatible, making it usable for other tools.",
},
subCommands: { auth, start, "check-usage": checkUsage, debug },
})
await runMain(main)