forked from phoenix-oss/llama-stack-mirror
25 lines
768 B
Python
25 lines
768 B
Python
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the terms described in the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
from .config import SampleConfig
|
|
|
|
|
|
from llama_stack.apis.inference import * # noqa: F403
|
|
|
|
from llama_stack.distribution.datatypes import RoutableProvider
|
|
|
|
|
|
class SampleInferenceImpl(Inference, RoutableProvider):
|
|
def __init__(self, config: SampleConfig):
|
|
self.config = config
|
|
|
|
async def validate_routing_keys(self, routing_keys: list[str]) -> None:
|
|
# these are the model names the Llama Stack will use to route requests to this provider
|
|
# perform validation here if necessary
|
|
pass
|
|
|
|
async def initialize(self):
|
|
pass
|