copilot-api / src /lib /state.ts
imseldrith's picture
Initial upload from Colab
9e27976 verified
import type { ModelsResponse } from "~/services/copilot/get-models"
export interface State {
githubToken?: string
copilotToken?: string
accountType: string
models?: ModelsResponse
vsCodeVersion?: string
manualApprove: boolean
rateLimitWait: boolean
showToken: boolean
// Rate limiting configuration
rateLimitSeconds?: number
lastRequestTimestamp?: number
}
export const state: State = {
accountType: "individual",
manualApprove: false,
rateLimitWait: false,
showToken: false,
}