Skip to content

Commit cab1e53

Browse files
authored
Merge pull request #20 from AzizStark/fix/normalchat
Fix complete task rendering, handle docker launch warnings and update model
2 parents d74f36b + 38ec6de commit cab1e53

File tree

8 files changed

+190
-99
lines changed

8 files changed

+190
-99
lines changed

.changeset/tangy-trees-train.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"Factifai": patch
3+
---
4+
5+
Fix complete task description not rendering and handle docker launch errors

backend/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ AWS_REGION= # AWS region (e.g., us-west-2)
2020
AWS_ACCESS_KEY_ID= # Your AWS access key ID
2121
AWS_SECRET_ACCESS_KEY= # Your AWS secret access key
2222
BEDROCK_MODEL_ID= # Bedrock model identifier
23+
BEDROCK_MODEL_CONTEXT_WINDOW= # Bedrock model context window
2324

2425
# Google Gemini Configuration
2526
GEMINI_API_KEY= # Your Google Gemini API key

backend/src/config/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ export const config: Config = {
3838
},
3939
anthropic: {
4040
apiKey: process.env.ANTHROPIC_API_KEY,
41-
model: "anthropic.claude-3-5-sonnet-20241022-v2:0",
41+
model:
42+
process.env.BEDROCK_MODEL_ID ||
43+
"us.anthropic.claude-3-7-sonnet-20250219-v1:0",
4244
contextConfig: {
4345
minMessages: 10,
4446
contextReservePercentage: 20,
4547
modelContextWindows: {
46-
"anthropic.claude-3-5-sonnet-20241022-v2:0": 200000,
48+
[process.env.BEDROCK_MODEL_CONTEXT_WINDOW || "default"]: 200000,
49+
"us.anthropic.claude-3-7-sonnet-20250219-v1:0": 131072,
4750
},
4851
},
4952
useBedrock: process.env.USE_BEDROCK === "true",
@@ -55,7 +58,7 @@ export const config: Config = {
5558
},
5659
modelId:
5760
process.env.BEDROCK_MODEL_ID ||
58-
"anthropic.claude-3-5-sonnet-20241022-v2:0",
61+
"us.anthropic.claude-3-7-sonnet-20250219-v1:0",
5962
},
6063
},
6164
gemini: {

backend/src/prompts/explore-mode.prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Common Actions (Both Sources):
6767
## complete_task:
6868
- Use this tool when the given task is completed.
6969
- Do not use this tool with any other tool.
70-
Usage: <complete_task>description</complete_task>
70+
Usage: <complete_task><task_status>exploration complete</task_status><additional_info>any information/description you want to provide</additional_info></complete_task>
7171
7272
Important Notes:
7373
- Puppeteer: Must start with 'launch' if no screenshot exists

backend/src/server.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ io.on("connection", (socket) => {
9595
// Global error handler
9696
app.use(errorHandler);
9797

98+
// ASCII art for server startup
99+
console.log(`
100+
______ ______ ______ ______ __ ______ ______ __
101+
/\\ ___\\ /\\ __ \\ /\\ ___\\ /\\__ _\\ /\\ \\ /\\ ___\\ /\\ __ \\ /\\ \\
102+
\\ \\ __\\ \\ \\ __ \\ \\ \\ \\____ \\/_/\\ \\/ \\ \\ \\ \\ \\ __\\ \\ \\ __ \\ \\ \\ \\
103+
\\ \\_\\ \\ \\_\\ \\_\\ \\ \\_____\\ \\ \\_\\ \\ \\_\\ \\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\
104+
\\/_/ \\/_/\\/_/ \\/_____/ \\/_/ \\/_/ \\/_/ \\/_/\\/_/ \\/_/
105+
`);
106+
98107
// Start server
99108
httpServer.listen(config.port, () => {
100109
io.sockets.emit("browser-console", {

0 commit comments

Comments
 (0)