Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion skythought/evals/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional, Union

import yaml
from pydantic import BaseModel, Field, PrivateAttr, model_validator
from pydantic import BaseModel, ConfigDict, Field, PrivateAttr, model_validator

MODEL_CONFIG_FILE_PATH = Path(__file__).parent / "model_configs.yaml"
# cache the configs in a global var
Expand Down Expand Up @@ -35,6 +35,8 @@ def read_yaml(path: str):


class ModelConfig(BaseModel):
model_config = ConfigDict(protected_namespaces=())

model_id: str
name: Optional[str] = Field(default=None)
# can be a string or a path to a file with the string
Expand Down