Skip to content

Commit 43526ea

Browse files
committed
refactor: rename service folder
1 parent ba07e7f commit 43526ea

File tree

14 files changed

+6
-81
lines changed

14 files changed

+6
-81
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { CACHE } from "./lib/cache"
55
import { PATHS } from "./lib/paths"
66
import { TOKENS } from "./lib/tokens"
77
import { server } from "./server"
8-
import { getModels } from "./services/copilot-vscode/get-models/service"
9-
import { getCopilotToken } from "./services/copilot-vscode/get-token/copilot-token"
10-
import { getGitHubToken } from "./services/copilot-vscode/get-token/github-token"
8+
import { getModels } from "./services/copilot/get-models/service"
9+
import { getCopilotToken } from "./services/copilot/get-token/copilot-token"
10+
import { getGitHubToken } from "./services/copilot/get-token/github-token"
1111

1212
if (!fs.existsSync(PATHS.PATH_CACHE_FILE)) {
1313
fs.mkdirSync(PATHS.DIR_CACHE, { recursive: true })

src/routes/chat-completions/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { Hono } from "hono"
33
import { streamSSE } from "hono/streaming"
44
import { FetchError } from "ofetch"
55

6-
import type { ChatCompletionsPayload } from "~/services/copilot-vscode/chat-completions/types"
7-
import type { ChatCompletionsChunk } from "~/services/copilot-vscode/chat-completions/types.streaming"
6+
import type { ChatCompletionsPayload } from "~/services/copilot/chat-completions/types"
7+
import type { ChatCompletionsChunk } from "~/services/copilot/chat-completions/types.streaming"
88

9-
import { chatCompletions } from "~/services/copilot-vscode/chat-completions/service"
9+
import { chatCompletions } from "~/services/copilot/chat-completions/service"
1010

1111
export const chatCompletionsRoutes = new Hono()
1212

src/services/copilot-web/api-instance.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/services/copilot-web/create-message/service.ts

Whitespace-only changes.

src/services/copilot-web/create-message/types.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/services/copilot-web/create-thread/service.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.
File renamed without changes.

src/services/copilot-vscode/chat-completions/types.streaming.ts renamed to src/services/copilot/chat-completions/types.streaming.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)