mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-16 20:32:38 +00:00
22 lines
549 B
Python
22 lines
549 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 typing import Any, Dict
|
|
|
|
from llama_stack.distribution.datatypes import RemoteProviderConfig
|
|
|
|
|
|
DEFAULT_OLLAMA_PORT = 11434
|
|
|
|
|
|
class OllamaImplConfig(RemoteProviderConfig):
|
|
port: int
|
|
|
|
@classmethod
|
|
def sample_run_config(
|
|
cls, port_str: str = str(DEFAULT_OLLAMA_PORT)
|
|
) -> Dict[str, Any]:
|
|
return {"port": port_str}
|