[Inference Providers] fix inference with URL endpoints (#3041)
* fix inference with url endpoints
* style
* parentheses
* add test
* Update tests/test_inference_client.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update tests/test_inference_client.py
Co-authored-by: Lucain <lucain@huggingface.co>
* Update tests/test_inference_client.py
---------
Co-authored-by: Lucain <lucain@huggingface.co>