Skip to content

Commit c5c1c5d

Browse files
committed
Moves origin app to a constant
1 parent d3d1032 commit c5c1c5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/api/providers/unbound.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { addCacheBreakpoints as addGeminiCacheBreakpoints } from "../transform/c
1111
import type { SingleCompletionHandler, ApiHandlerCreateMessageMetadata } from "../index"
1212
import { RouterProvider } from "./router-provider"
1313

14+
const ORIGIN_APP = "roo-code"
15+
1416
const DEFAULT_HEADERS = {
1517
"X-Unbound-Metadata": JSON.stringify({ labels: [{ key: "app", value: "roo-code" }] }),
1618
}
@@ -80,7 +82,7 @@ export class UnboundHandler extends RouterProvider implements SingleCompletionHa
8082
messages: openAiMessages,
8183
stream: true,
8284
unbound_metadata: {
83-
originApp: "roo-code",
85+
originApp: ORIGIN_APP,
8486
taskId: metadata?.taskId,
8587
mode: metadata?.mode,
8688
},
@@ -131,7 +133,7 @@ export class UnboundHandler extends RouterProvider implements SingleCompletionHa
131133
model: modelId.split("/")[1],
132134
messages: [{ role: "user", content: prompt }],
133135
unbound_metadata: {
134-
originApp: "roo-code",
136+
originApp: ORIGIN_APP,
135137
},
136138
}
137139

0 commit comments

Comments
 (0)