Skip to content

Commit 0afbf59

Browse files
committed
clean up
1 parent af63b01 commit 0afbf59

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/agent/src/adapters/claude/claude.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,7 @@ export class ClaudeAcpAgent implements Agent {
676676
// When using the gateway service, text/thinking is streamed via stream_event,
677677
// so skip them here to avoid duplication.
678678
const content = message.message.content;
679-
const isUsingGatewayService = !!(
680-
process.env.LLM_GATEWAY_URL
681-
);
679+
const isUsingGatewayService = !!process.env.LLM_GATEWAY_URL;
682680
const contentToProcess =
683681
isUsingGatewayService && Array.isArray(content)
684682
? content.filter(
@@ -687,7 +685,7 @@ export class ClaudeAcpAgent implements Agent {
687685
: content;
688686

689687
for (const notification of toAcpNotifications(
690-
contentToProcess,
688+
contentToProcess as typeof content,
691689
message.message.role,
692690
params.sessionId,
693691
this.toolUseCache,

packages/agent/src/agent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ Generated by PostHog Agent`;
519519

520520
private ensureOpenAIGatewayEnv(gatewayUrl?: string, token?: string): void {
521521
const resolvedGatewayUrl = gatewayUrl || process.env.ANTHROPIC_BASE_URL;
522-
console.log("resolvedGatewayUrl", resolvedGatewayUrl);
523522
const resolvedToken = token || process.env.ANTHROPIC_AUTH_TOKEN;
524523

525524
if (resolvedGatewayUrl) {

0 commit comments

Comments
 (0)