Skip to content

Commit 55c9ecb

Browse files
Fix escaped JSON string in test_oci_generative_ai.py
Corrects the escaped JSON string in the 'arguments' field of the test_meta_tool_calling test to ensure proper formatting and accurate test coverage.
1 parent 3b88b83 commit 55c9ecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def mocked_response_escaped(*args, **kwargs): # type: ignore[no-untyped-def]
277277
"type": "FUNCTION",
278278
"id": "call_escaped",
279279
"name": "get_weather",
280-
# Escaped JSON (the bug scenario) # noqa: E501
281-
"arguments": '"{{\\"location\\": \\"San Francisco\\"}}"', # noqa: E501
280+
# Escaped JSON (the bug scenario) # noqa: E501
281+
"arguments": '"{\\"location\\": \\"San Francisco\\"}"', # noqa: E501
282282
"attribute_map": {
283283
"id": "id",
284284
"type": "type",

0 commit comments

Comments
 (0)