From 5c086b0f5da290d0d206e9586dec253903b607d0 Mon Sep 17 00:00:00 2001 From: DavdGao Date: Sun, 4 Feb 2024 16:00:19 +0800 Subject: [PATCH] Improve format accordingly. --- tests/service_factory_test.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/tests/service_factory_test.py b/tests/service_factory_test.py index 85fcb3b63..de8c529f6 100644 --- a/tests/service_factory_test.py +++ b/tests/service_factory_test.py @@ -35,26 +35,32 @@ def test_bing_search(self) -> None: "type": "function", "function": { "name": "bing_search", - "description": "Search question in Bing Search API and return the searching results", + "description": ( + "Search question in Bing Search API and " + "return the searching results" + ), "parameters": { "type": "object", "properties": { "num_results": { "type": "number", - "description": "The number of search results to return.", - "default": 10 + "description": ( + "The number of search " + "results to return." + ), + "default": 10, }, "question": { "type": "string", - "description": "The search query string." + "description": "The search query string.", }, }, "required": [ - "question" - ] - } - } - } + "question", + ], + }, + }, + }, ) # Set num_results by developer rather than model