Skip to content

Commit b8aa43a

Browse files
committed
deepcopy credentials tool schema
1 parent 7850313 commit b8aa43a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llmstack/processors/providers/promptly/web_browser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import base64
22
import logging
33
import uuid
4+
from copy import deepcopy
45
from typing import List, Literal, Optional, Union
56
from urllib.parse import urlparse
67

@@ -505,7 +506,7 @@ def _process_anthropic(self) -> dict:
505506
browser_downloads = []
506507
session_videos = []
507508

508-
credentials_tool_schema = CREDENTIALS_TOOL_SCHEMA["function"].copy()
509+
credentials_tool_schema = deepcopy(CREDENTIALS_TOOL_SCHEMA["function"])
509510
credentials_tool_schema["input_schema"] = credentials_tool_schema.pop("parameters")
510511

511512
updated_session_data = None

0 commit comments

Comments
 (0)