mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-13 13:02:38 +00:00
add completion() for ollama
This commit is contained in:
parent
23210e8679
commit
042f887e8a
5 changed files with 138 additions and 15 deletions
|
|
@ -132,7 +132,10 @@ async def test_completion(inference_settings):
|
|||
params = inference_settings["common_params"]
|
||||
|
||||
provider = inference_impl.routing_table.get_provider_impl(params["model"])
|
||||
if provider.__provider_id__ != "meta-reference":
|
||||
if provider.__provider_spec__.provider_type not in (
|
||||
"meta-reference",
|
||||
"remote::ollama",
|
||||
):
|
||||
pytest.skip("Other inference providers don't support completion() yet")
|
||||
|
||||
response = await inference_impl.completion(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue