Skip to content

Commit 414f22a

Browse files
joshsnycursoragent
andauthored
chore: rename gateway product to posthog_code instead of twig (#1131)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent d42a043 commit 414f22a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/agent/src/server/agent-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ Important:
754754
private configureEnvironment(): void {
755755
const { apiKey, apiUrl, projectId } = this.config;
756756
const product =
757-
this.config.mode === "background" ? "background_agents" : "twig";
757+
this.config.mode === "background" ? "background_agents" : "posthog_code";
758758
const gatewayUrl =
759759
process.env.LLM_GATEWAY_URL || getLlmGatewayUrl(apiUrl, product);
760760
const openaiBaseUrl = gatewayUrl.endsWith("/v1")

packages/agent/src/utils/gateway.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
export type GatewayProduct = "twig" | "background_agents";
1+
export type GatewayProduct = "posthog_code" | "background_agents";
22

33
export function getLlmGatewayUrl(
44
posthogHost: string,
5-
product: GatewayProduct = "twig",
5+
product: GatewayProduct = "posthog_code",
66
): string {
77
const url = new URL(posthogHost);
88
const hostname = url.hostname;

0 commit comments

Comments
 (0)