Skip to content

Commit 63040d6

Browse files
committed
feat: Add streaming emulation log to initialization process
1 parent 4db1e47 commit 63040d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/lib/initialization.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import consola from "consola"
22
import fs from "node:fs"
33

4+
import { ENV } from "~/config/env"
5+
46
import { PATHS } from "../config/paths"
57
import { TOKENS } from "../config/tokens"
68
import { getModels } from "../services/copilot/get-models/service"
@@ -52,11 +54,13 @@ async function initializeCache() {
5254
async function logAvailableModels() {
5355
const models = await getModels()
5456
consola.info(
55-
`Available models: \n${models.data.map((model) => `- ${model.id}`).join("\n")}`,
57+
`Available models: \n${models.data.map((model) => `- ${model.id}`).join("\n")}\n`,
5658
)
5759
}
5860

5961
export async function initialize() {
62+
if (ENV.EMULATE_STREAMING) consola.box("Streaming emulation is enabled.")
63+
6064
await initializeCache()
6165

6266
// Initialize tokens

0 commit comments

Comments
 (0)