Skip to content

Commit

Permalink
config is now backed by pydantic (WIP)
Browse files Browse the repository at this point in the history
- add models for config options
- add function to regenerate config.yml
- replace references to config with pydantic compatible references
- remove unnecessary unwrap() statements

TODO:

- auto generate env vars
- auto generate argparse
- test loading a model
  • Loading branch information
SecretiveShell committed Sep 11, 2024
1 parent 79a330e commit b2620d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion endpoints/core/types/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from common.config_models import logging_config_model
from common.tabby_config import config
from common.utils import unwrap

from common.config_models import logging_config_model
from common.model import get_config_default

class ModelCardParameters(BaseModel):
"""Represents model card parameters."""
Expand Down

0 comments on commit b2620d1

Please sign in to comment.