Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 7157c65

Browse files
committed
Merge branch 'development'
2 parents ffc4b76 + 100ca31 commit 7157c65

10 files changed

Lines changed: 419 additions & 72 deletions

File tree

packages/bytebot-agent/src/agent/agent.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { OpenAIModule } from '../openai/openai.module';
1010
import { GoogleModule } from '../google/google.module';
1111
import { SummariesModule } from 'src/summaries/summaries.modue';
1212
import { AgentAnalyticsService } from './agent.analytics';
13+
import { ProxyModule } from 'src/proxy/proxy.module';
1314

1415
@Module({
1516
imports: [
@@ -20,6 +21,7 @@ import { AgentAnalyticsService } from './agent.analytics';
2021
AnthropicModule,
2122
OpenAIModule,
2223
GoogleModule,
24+
ProxyModule,
2325
],
2426
providers: [
2527
AgentProcessor,

packages/bytebot-agent/src/agent/agent.processor.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
ToolResultContentBlock,
2424
TextContentBlock,
2525
} from '@bytebot/shared';
26-
import { ConfigService } from '@nestjs/config';
2726
import { InputCaptureService } from './input-capture.service';
2827
import { OnEvent } from '@nestjs/event-emitter';
2928
import { OpenAIService } from '../openai/openai.service';
@@ -37,8 +36,9 @@ import {
3736
AGENT_SYSTEM_PROMPT,
3837
SUMMARIZATION_SYSTEM_PROMPT,
3938
} from './agent.constants';
40-
import { SummariesService } from 'src/summaries/summaries.service';
39+
import { SummariesService } from '../summaries/summaries.service';
4140
import { handleComputerToolUse } from './agent.computer-use';
41+
import { ProxyService } from '../proxy/proxy.service';
4242

4343
@Injectable()
4444
export class AgentProcessor {
@@ -55,12 +55,14 @@ export class AgentProcessor {
5555
private readonly anthropicService: AnthropicService,
5656
private readonly openaiService: OpenAIService,
5757
private readonly googleService: GoogleService,
58+
private readonly proxyService: ProxyService,
5859
private readonly inputCaptureService: InputCaptureService,
5960
) {
6061
this.services = {
6162
anthropic: this.anthropicService,
6263
openai: this.openaiService,
6364
google: this.googleService,
65+
proxy: this.proxyService,
6466
};
6567
this.logger.log('AgentProcessor initialized');
6668
}

packages/bytebot-agent/src/agent/agent.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface BytebotAgentService {
2121
}
2222

2323
export interface BytebotAgentModel {
24-
provider: 'anthropic' | 'openai' | 'google';
24+
provider: 'anthropic' | 'openai' | 'google' | 'proxy';
2525
name: string;
2626
title: string;
2727
contextWindow?: number;

packages/bytebot-agent/src/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
1414
import { AuthModule } from '@thallesp/nestjs-better-auth';
1515
import { auth } from './auth';
1616
import { SummariesModule } from './summaries/summaries.modue';
17+
import { ProxyModule } from './proxy/proxy.module';
1718

1819
const authEnabled = process.env.AUTH_ENABLED === 'true';
1920

@@ -38,6 +39,7 @@ const authEnabled = process.env.AUTH_ENABLED === 'true';
3839
AnthropicModule,
3940
OpenAIModule,
4041
GoogleModule,
42+
ProxyModule,
4143
PrismaModule,
4244
],
4345
controllers: [AppController],
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Module } from '@nestjs/common';
2+
import { ConfigModule } from '@nestjs/config';
3+
import { ProxyService } from './proxy.service';
4+
5+
@Module({
6+
imports: [ConfigModule],
7+
providers: [ProxyService],
8+
exports: [ProxyService],
9+
})
10+
export class ProxyModule {}

0 commit comments

Comments
 (0)