Skip to content

Commit

Permalink
Improve format accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Feb 4, 2024
1 parent 43eca62 commit 5c086b0
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions tests/service_factory_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c086b0

Please sign in to comment.