completion() for fireworks (#329)

This commit is contained in:
Dinesh Yeduguru 2024-10-25 16:12:10 -07:00 committed by GitHub
parent 7ec79f3b9d
commit 9b85d9a841
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 44 additions and 4 deletions

View file

@ -139,6 +139,7 @@ async def test_completion(inference_settings):
"remote::ollama",
"remote::tgi",
"remote::together",
"remote::fireworks",
):
pytest.skip("Other inference providers don't support completion() yet")
@ -167,7 +168,7 @@ async def test_completion(inference_settings):
]
assert all(isinstance(chunk, CompletionResponseStreamChunk) for chunk in chunks)
assert len(chunks) == 51
assert len(chunks) >= 1
last = chunks[-1]
assert last.stop_reason == StopReason.out_of_tokens
@ -182,6 +183,7 @@ async def test_completions_structured_output(inference_settings):
"meta-reference",
"remote::tgi",
"remote::together",
"remote::fireworks",
):
pytest.skip(
"Other inference providers don't support structured output in completions yet"