Skip to content

Commit

Permalink
🔧 fix pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Jan 25, 2024
1 parent 276cb33 commit 4aabde8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dspy.todo
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ To make this possible I need to:
- unify syntax and schemas
- invent new syntax for special dspy modules (COT, FewShot, ...)
- seperate string and structured types logic
-
-

booth are cutting edge ml libraries
1 change: 0 additions & 1 deletion src/funcchain/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

2 changes: 1 addition & 1 deletion src/funcchain/parser/json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
from typing import Type, TypeVar

import yaml
import yaml # type: ignore
from langchain_core.exceptions import OutputParserException
from langchain_core.language_models import BaseChatModel
from langchain_core.output_parsers import BaseOutputParser
Expand Down
4 changes: 3 additions & 1 deletion src/funcchain/syntax/components/handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Union

from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.language_models import BaseChatModel
from langchain_core.messages import AIMessage, HumanMessage
Expand All @@ -9,7 +11,7 @@
from ...model.defaults import univeral_model_selector
from ...utils.msg_tools import msg_to_str

UniversalLLM = BaseChatModel | str | None
UniversalLLM = Union[BaseChatModel, str, None]


def load_universal_llm(llm: UniversalLLM) -> BaseChatModel:
Expand Down

0 comments on commit 4aabde8

Please sign in to comment.