We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a178428 commit 86fe7a9Copy full SHA for 86fe7a9
litellm/llms/anthropic.py
@@ -1,7 +1,7 @@
1
import os, types
2
import json
3
from enum import Enum
4
-import requests
+import requests, copy
5
import time, uuid
6
from typing import Callable, Optional
7
from litellm.utils import ModelResponse, Usage, map_finish_reason
@@ -117,6 +117,7 @@ def completion(
117
):
118
headers = validate_environment(api_key, headers)
119
_is_function_call = False
120
+ messages = copy.deepcopy(messages)
121
if model in custom_prompt_dict:
122
# check if the model has a registered custom prompt
123
model_prompt_details = custom_prompt_dict[model]
0 commit comments