forked from phoenix-oss/llama-stack-mirror
fix together inference validator (#393)
This commit is contained in:
parent
31c5fbda5e
commit
36e2538eb0
2 changed files with 7 additions and 1 deletions
|
@ -117,7 +117,7 @@ def available_providers() -> List[ProviderSpec]:
|
||||||
],
|
],
|
||||||
module="llama_stack.providers.remote.inference.together",
|
module="llama_stack.providers.remote.inference.together",
|
||||||
config_class="llama_stack.providers.remote.inference.together.TogetherImplConfig",
|
config_class="llama_stack.providers.remote.inference.together.TogetherImplConfig",
|
||||||
provider_data_validator="llama_stack.providers.remote.safety.together.TogetherProviderDataValidator",
|
provider_data_validator="llama_stack.providers.remote.inference.together.TogetherProviderDataValidator",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
remote_provider_spec(
|
remote_provider_spec(
|
||||||
|
|
|
@ -4,9 +4,15 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from .config import TogetherImplConfig
|
from .config import TogetherImplConfig
|
||||||
|
|
||||||
|
|
||||||
|
class TogetherProviderDataValidator(BaseModel):
|
||||||
|
together_api_key: str
|
||||||
|
|
||||||
|
|
||||||
async def get_adapter_impl(config: TogetherImplConfig, _deps):
|
async def get_adapter_impl(config: TogetherImplConfig, _deps):
|
||||||
from .together import TogetherInferenceAdapter
|
from .together import TogetherInferenceAdapter
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue