mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
24 lines
709 B
Python
24 lines
709 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, List, Optional
|
|
|
|
from llama_models.schema_utils import json_schema_type
|
|
from llama_models.sku_list import all_registered_models, resolve_model
|
|
from llama_stack.distribution.datatypes import GenericProviderConfig
|
|
|
|
from pydantic import BaseModel, Field, field_validator
|
|
|
|
|
|
@json_schema_type
|
|
class ModelConfigProviderEntry(GenericProviderConfig):
|
|
api: str
|
|
core_model_id: str
|
|
|
|
|
|
@json_schema_type
|
|
class BuiltinImplConfig(BaseModel):
|
|
models_config: List[ModelConfigProviderEntry]
|