mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
* resource oriented object design for models * add back llama_model field * working tests * register singature fix * address feedback --------- Co-authored-by: Dinesh Yeduguru <dineshyv@fb.com>
23 lines
667 B
Python
23 lines
667 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
|
|
|
|
|
|
class SampleInferenceImpl(Inference):
|
|
def __init__(self, config: SampleConfig):
|
|
self.config = config
|
|
|
|
async def register_model(self, model: Model) -> 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
|