Skip to content

Commit 3b88b83

Browse files
Fix typo in test JSON string for tool calling
Corrects the closing quote in the 'arguments' field of the test_meta_tool_calling test to ensure the escaped JSON is properly formatted.
1 parent 36d9e69 commit 3b88b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/oci/tests/unit_tests/chat_models/test_oci_generative_ai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def mocked_response_escaped(*args, **kwargs): # type: ignore[no-untyped-def]
278278
"id": "call_escaped",
279279
"name": "get_weather",
280280
# Escaped JSON (the bug scenario) # noqa: E501
281-
"arguments": '"{{\\"location\\": \\"San Francisco\\"}}"}', # noqa: E501
281+
"arguments": '"{{\\"location\\": \\"San Francisco\\"}}"', # noqa: E501
282282
"attribute_map": {
283283
"id": "id",
284284
"type": "type",

0 commit comments

Comments
 (0)