Commit 13e707fe authored by Kantz's avatar Kantz
Browse files

anpassung des Solvers

parent d9c55517
......@@ -13,7 +13,7 @@ def solve_question(question: str, context_sheet: str) -> str:
prompt = (
"Frage:\n"
+ question
+ "\n\Kontex:\n"
+ "\nKontex:\n"
+ context_sheet
)
result = llm_client.chat(
......
......@@ -50,8 +50,8 @@ def run_chat(messages: list[dict], draft: str | None = None) -> dict:
history_text = context_store.format_history(messages)
sheet_text = context_store.format_sheet(sheet)
llm_solution = solver_LLM.solve_question(messages, sheet_text)
_append_tool_log(tool_log, "LLM_Solution", messages, llm_solution)
llm_solution = solver_LLM.solve_question(last_user.get("content", ""), sheet_text)
_append_tool_log(tool_log, "LLM_Solution", last_user.get("content", ""), llm_solution)
context_store.add_LLM_solution(sheet, llm_solution)
decision = decision_LLM.needs_more_context(history_text, sheet_text)
_append_tool_log(tool_log, "decision", sheet_text, decision)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment