Skip to content

Commit

Permalink
Fixed type annotation for models field in Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NotBioWaste905 committed Nov 13, 2024
1 parent ff81267 commit 7518259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatsky/core/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from chatsky.core.service.actor import Actor
from chatsky.core.node_label import AbsoluteNodeLabel, AbsoluteNodeLabelInitTypes
from chatsky.core.script_parsing import JSONImporter, Path
from chatsky.llm.llm_api import LLM_API

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -78,7 +79,7 @@ class Pipeline(BaseModel, extra="forbid", arbitrary_types_allowed=True):
"""
Slots configuration.
"""
models: Dict = Field(default_factory=dict)
models: Dict[str, LLM_API] = Field(default_factory=dict)
"""
LLM models.
"""
Expand Down

0 comments on commit 7518259

Please sign in to comment.