mirror of
https://github.com/Zippland/NanoComic.git
synced 2026-03-03 08:34:55 +08:00
error display
This commit is contained in:
@@ -153,7 +153,7 @@ def reflection(state: OverallState, config: RunnableConfig) -> ReflectionState:
|
||||
configurable = Configuration.from_runnable_config(config)
|
||||
# Increment the research loop count and get the reasoning model
|
||||
state["research_loop_count"] = state.get("research_loop_count", 0) + 1
|
||||
reasoning_model = state.get("reasoning_model") or configurable.reasoning_model
|
||||
reasoning_model = state.get("reasoning_model", configurable.reflection_model)
|
||||
|
||||
# Format the prompt
|
||||
current_date = get_current_date()
|
||||
@@ -231,7 +231,7 @@ def finalize_answer(state: OverallState, config: RunnableConfig):
|
||||
Dictionary with state update, including running_summary key containing the formatted final summary with sources
|
||||
"""
|
||||
configurable = Configuration.from_runnable_config(config)
|
||||
reasoning_model = state.get("reasoning_model") or configurable.reasoning_model
|
||||
reasoning_model = state.get("reasoning_model") or configurable.answer_model
|
||||
|
||||
# Format the prompt
|
||||
current_date = get_current_date()
|
||||
|
||||
Reference in New Issue
Block a user