File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import consola from "consola"
22
33import type { GetModelsResponse } from "~/services/copilot/get-models/types"
44
5- import { getModels } from "~/services/copilot/get-models/service "
5+ import { getModels } from "~/services/copilot/get-models"
66
77import { state } from "./state"
88
Original file line number Diff line number Diff line change 1- import type { GetModelsResponse } from "~/services/copilot/get-models/types "
1+ import type { ModelsResponse } from "~/services/copilot/get-models"
22
33interface State {
44 githubToken ?: string
55 copilotToken ?: string
6- models ?: GetModelsResponse
6+ models ?: ModelsResponse
77}
88
99export const state : State = { }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import consola from "consola"
22import fs from "node:fs/promises"
33
44import { PATHS } from "~/lib/paths"
5- import { getCopilotToken } from "~/services/copilot/get-token/ copilot-token"
5+ import { getCopilotToken } from "~/services/copilot/get-copilot-token"
66import { getDeviceCode } from "~/services/github/get-device-code"
77import { getGitHubUser } from "~/services/github/get-user"
88import { pollAccessToken } from "~/services/github/poll-access-token"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import consola from "consola"
22import { Hono } from "hono"
33import { FetchError } from "ofetch"
44
5- import { getModels } from "~/services/copilot/get-models/service "
5+ import { getModels } from "~/services/copilot/get-models"
66
77export const modelRoutes = new Hono ( )
88
File renamed without changes.
Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ export const getModels = async () => {
1717 return ( await response . json ( ) ) as ModelsResponse
1818}
1919
20+ export interface ModelsResponse {
21+ data : Array < Model >
22+ object : string
23+ }
24+
2025interface ModelLimits {
2126 max_context_window_tokens ?: number
2227 max_output_tokens ?: number
@@ -53,8 +58,3 @@ interface Model {
5358 terms : string
5459 }
5560}
56-
57- export interface ModelsResponse {
58- data : Array < Model >
59- object : string
60- }
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments