We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4567570 commit 8fa68f0Copy full SHA for 8fa68f0
pdd/llm_invoke.py
@@ -1,6 +1,7 @@
1
# Corrected code_under_test (llm_invoke.py)
2
# Added optional debugging prints in _select_model_candidates
3
4
+import copy
5
import os
6
import pandas as pd
7
import litellm
@@ -1971,7 +1972,7 @@ def calc_strength(candidate):
1971
1972
# --- 5. Prepare LiteLLM Arguments ---
1973
litellm_kwargs: Dict[str, Any] = {
1974
"model": model_name_litellm,
- "messages": formatted_messages,
1975
+ "messages": copy.deepcopy(formatted_messages),
1976
# Use a local adjustable temperature to allow provider-specific fallbacks
1977
"temperature": current_temperature,
1978
# Retry on transient network errors (APIError, TimeoutError, ServiceUnavailableError)
0 commit comments