search_tools
Test Search Tool Connection
Changed onTest connection to a search provider with the given configuration.
Makes a simple test search query to verify the API key and configuration are valid.
Example Request:
curl -X POST "http://localhost:4000/search_tools/test_connection" \
-H "Authorization: Bearer <your_api_key>" \
-H "Content-Type: application/json" \
-d '{
"litellm_params": {
"search_provider": "perplexity",
"api_key": "sk-..."
}
}'
Example Response (Success):
{
"status": "success",
"message": "Successfully connected to perplexity search provider",
"test_query": "test",
"results_count": 5
}
Example Response (Failure):
{
"status": "error",
"message": "Authentication failed: Invalid API key",
"error_type": "AuthenticationError"
}
post/search_tools/test_connection
Request
- Base URLhttps://api.flock.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.flock.io/search_tools/test_connection
- AuthAPI key in header x-litellm-api-key
Request body
Response
Successful Response
unknown required
Changes
- info
api tag
search_toolsadded - info
api tag
Search Toolsremoved
- info
- info
api tag
Search Toolsadded - info
api tag
search_toolsremoved
- info