Skip to content

Commit

Permalink
fix: add tree logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Jan 9, 2025
1 parent f39804c commit f081d7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adapters/openai/helpers/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ExploreDir } from "../../../tools/explore-dir";
import { SearchFiles } from "../../../tools/search-files";
import { CreatePr } from "../../../tools/create-pr";

const MAX_TRIES = 10;
const MAX_TRIES = 5;

const sysMsg = `You are a capable AI assistant currently running on a GitHub bot.
You are designed to assist with resolving issues by making incremental fixes using a standardized tool interface.
Expand Down Expand Up @@ -371,6 +371,8 @@ export class Completions extends SuperOpenAi {
? (treeResult.data as DirectoryExploreResult).tree
: "Unable to get directory tree";

this.context.logger.info("Directory tree:", { tree: treeOutput });

// Add the current state to conversation
conversationHistory.push({
role: "user",
Expand Down

0 comments on commit f081d7b

Please sign in to comment.