Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pdd/llm_invoke.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Corrected code_under_test (llm_invoke.py)
# Added optional debugging prints in _select_model_candidates

import copy
import os
import pandas as pd
import litellm
Expand Down Expand Up @@ -1963,7 +1964,7 @@ def calc_strength(candidate):
# --- 5. Prepare LiteLLM Arguments ---
litellm_kwargs: Dict[str, Any] = {
"model": model_name_litellm,
"messages": formatted_messages,
"messages": copy.deepcopy(formatted_messages),
# Use a local adjustable temperature to allow provider-specific fallbacks
"temperature": current_temperature,
# Retry on transient network errors (APIError, TimeoutError, ServiceUnavailableError)
Expand Down
Loading
Loading