llama-stack-mirror/llama_stack/providers/impls/builtin/models/config.py
2024-09-19 17:49:53 -07:00

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]