mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 06:53:47 +00:00
working tests
This commit is contained in:
parent
4f5c4d1e3b
commit
23777abeb7
4 changed files with 54 additions and 13 deletions
|
@ -10,7 +10,6 @@ import pytest
|
|||
import pytest_asyncio
|
||||
|
||||
from llama_stack.distribution.datatypes import Api, Provider
|
||||
from llama_stack.providers.datatypes import Model
|
||||
from llama_stack.providers.inline.inference.meta_reference import (
|
||||
MetaReferenceInferenceConfig,
|
||||
)
|
||||
|
@ -163,11 +162,9 @@ async def inference_stack(request, inference_model):
|
|||
inference_fixture.provider_data,
|
||||
)
|
||||
|
||||
model = Model(
|
||||
identifier=inference_model,
|
||||
provider_id=inference_fixture.providers[0].provider_id,
|
||||
await impls[Api.models].register_model(
|
||||
model_id=inference_model,
|
||||
provider_model_id=inference_fixture.providers[0].provider_id,
|
||||
)
|
||||
|
||||
await impls[Api.models].register_model(model)
|
||||
|
||||
return (impls[Api.inference], impls[Api.models])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue