add completion api support

This commit is contained in:
Matthew Farrellee 2024-11-25 09:55:14 -05:00
parent d3956a1d22
commit 6d41a93188
3 changed files with 208 additions and 7 deletions

View file

@ -94,6 +94,7 @@ class TestInference:
"remote::tgi",
"remote::together",
"remote::fireworks",
"remote::nvidia",
):
pytest.skip("Other inference providers don't support completion() yet")
@ -128,9 +129,7 @@ class TestInference:
@pytest.mark.asyncio
@pytest.mark.skip("This test is not quite robust")
async def test_completions_structured_output(
self, inference_model, inference_stack
):
async def test_completion_structured_output(self, inference_model, inference_stack):
inference_impl, _ = inference_stack
provider = inference_impl.routing_table.get_provider_impl(inference_model)
@ -139,6 +138,7 @@ class TestInference:
"remote::tgi",
"remote::together",
"remote::fireworks",
"remote::nvidia",
):
pytest.skip(
"Other inference providers don't support structured output in completions yet"