Skip to content

Commit

Permalink
reduce the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fatwang2 committed May 8, 2024
1 parent 5552800 commit d753442
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export const handle = async (req: IRequest): Promise<string> => {
});

for (const tool of ask.choices[0].message.tool_calls) {
console.log("Function call:", tool.function.name, JSON.parse(tool.function.arguments));
const result = await FunctionHandler.handle(
tool.function.name,
JSON.parse(tool.function.arguments),
Expand Down
2 changes: 0 additions & 2 deletions src/functions/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export const searchWeb = async (
crawl_results: 0,
}),
};
console.log("Search request:", url, options);

try {
const response = await fetch(url, options);
if (!response.ok) {
Expand Down

0 comments on commit d753442

Please sign in to comment.