Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 8621c1e

Browse files
committed
Remove model typing due to validation error
1 parent dc428d6 commit 8621c1e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/controlflow/llm/rules.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import textwrap
2-
from typing import Optional
2+
from typing import Any, Optional, Union
33

44
from langchain_anthropic import ChatAnthropic
55
from langchain_openai import AzureChatOpenAI, ChatOpenAI
6+
from pydantic import Field
67

78
from controlflow.llm.models import BaseChatModel
89
from controlflow.utilities.general import ControlFlowModel, unwrap
@@ -17,7 +18,7 @@ class LLMRules(ControlFlowModel):
1718
necessary.
1819
"""
1920

20-
model: Optional[BaseChatModel]
21+
model: Any
2122

2223
# require at least one non-system message
2324
require_at_least_one_message: bool = False
@@ -54,7 +55,7 @@ def model_instructions(self) -> Optional[list[str]]:
5455
class OpenAIRules(LLMRules):
5556
require_message_name_format: str = r"[^a-zA-Z0-9_-]"
5657

57-
model: ChatOpenAI
58+
model: Any
5859

5960
def model_instructions(self) -> list[str]:
6061
instructions = []

0 commit comments

Comments
 (0)