mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
models config refactor
This commit is contained in:
parent
552b747136
commit
54cd9ded80
3 changed files with 18 additions and 5 deletions
|
@ -4,15 +4,21 @@
|
|||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from llama_models.datatypes import ModelFamily
|
||||
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 BuiltinImplConfig(BaseModel): ...
|
||||
class ModelConfigProviderEntry(GenericProviderConfig):
|
||||
api: str
|
||||
core_model_id: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class BuiltinImplConfig(BaseModel):
|
||||
models_config: List[ModelConfigProviderEntry]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue