mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
# What does this PR do? - Configured ruff linter to automatically fix import sorting issues. - Set --exit-non-zero-on-fix to ensure non-zero exit code when fixes are applied. - Enabled the 'I' selection to focus on import-related linting rules. - Ran the linter, and formatted all codebase imports accordingly. - Removed the black dep from the "dev" group since we use ruff Signed-off-by: Sébastien Han <seb@redhat.com> [//]: # (If resolving an issue, uncomment and update the line below) [//]: # (Closes #[issue-number]) ## Test Plan [Describe the tests you ran to verify your changes with result summaries. *Provide clear instructions so the plan can be easily re-executed.*] [//]: # (## Documentation) [//]: # (- [ ] Added a Changelog entry if the change is significant) Signed-off-by: Sébastien Han <seb@redhat.com>
23 lines
702 B
Python
23 lines
702 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 llama_stack.apis.inference import Inference
|
|
from llama_stack.apis.models import Model
|
|
|
|
from .config import SampleConfig
|
|
|
|
|
|
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
|