cleaning up logs
This commit is contained in:
parent
1ecc7af0be
commit
7ba43f25fa
2 changed files with 1 additions and 3 deletions
|
|
@ -33,7 +33,6 @@ def call_model(state: dict, config: RunnableConfig) -> dict:
|
|||
}
|
||||
current_transformation = "patterns/custom"
|
||||
|
||||
logger.warning(f"Processing transformation: {current_transformation}")
|
||||
logger.debug(f"Using input: {input_args}")
|
||||
transformation_result = run_pattern(
|
||||
pattern_name=current_transformation,
|
||||
|
|
|
|||
|
|
@ -32,10 +32,9 @@ def run_pattern(
|
|||
system_prompt = Prompter(prompt_template=pattern_name, parser=parser).render(
|
||||
data=state
|
||||
)
|
||||
# logger.debug(f"System prompt: {system_prompt}")
|
||||
logger.debug(f"System prompt: {system_prompt}")
|
||||
|
||||
if len(messages) > 0:
|
||||
logger.warning(messages)
|
||||
response = chain.invoke([system_prompt] + messages)
|
||||
else:
|
||||
response = chain.invoke(system_prompt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue