forked from phoenix-oss/llama-stack-mirror
# What does this PR do? Automatically generates - build.yaml - run.yaml - run-with-safety.yaml - parts of markdown docs for the distributions. ## Test Plan At this point, this only updates the YAMLs and the docs. Some testing (especially with ollama and vllm) has been performed but needs to be much more tested.
15 lines
439 B
Python
15 lines
439 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 OllamaImplConfig
|
|
|
|
|
|
async def get_adapter_impl(config: OllamaImplConfig, _deps):
|
|
from .ollama import OllamaInferenceAdapter
|
|
|
|
impl = OllamaInferenceAdapter(config.url)
|
|
await impl.initialize()
|
|
return impl
|