Skip to content

Commit

Permalink
fix: pullrequest reviewer should avoid non-critical issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Aug 26, 2024
1 parent 5f62cb6 commit ec43ec7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/agent/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
import traceback
import logging
from typing import AsyncIterator, Dict, Callable, Optional
from langchain.agents import AgentExecutor
from agent.llm.base import BaseLLMClient
Expand All @@ -18,6 +18,7 @@

TAVILY_API_KEY = get_env_variable("TAVILY_API_KEY")

logger = logging.getLogger()

class AgentBuilder:

Expand Down Expand Up @@ -196,5 +197,5 @@ async def run_chat(self, input_data: ChatData) -> str:
return_only_outputs=True,
)
except Exception as e:
print(traceback.format_exc())
logger.error(e)
return f"error: {str(e)}\n"

0 comments on commit ec43ec7

Please sign in to comment.