Skip to content

Commit

Permalink
Updated more imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Feb 21, 2025
1 parent cf571b1 commit 685882b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/llm/anthropic_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
from neo4j_graphrag.llm.base import LLMInterface
from neo4j_graphrag.llm.types import (
BaseMessage,
LLMMessage,
LLMResponse,
MessageList,
UserMessage,
)
from neo4j_graphrag.message_history import MessageHistory
from neo4j_graphrag.types import LLMMessage

if TYPE_CHECKING:
from anthropic.types.message_param import MessageParam
Expand Down
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/llm/cohere_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
from neo4j_graphrag.llm.base import LLMInterface
from neo4j_graphrag.llm.types import (
BaseMessage,
LLMMessage,
LLMResponse,
MessageList,
SystemMessage,
UserMessage,
)
from neo4j_graphrag.message_history import MessageHistory
from neo4j_graphrag.types import LLMMessage

if TYPE_CHECKING:
from cohere import ChatMessages
Expand Down
2 changes: 1 addition & 1 deletion src/neo4j_graphrag/llm/mistralai_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
from neo4j_graphrag.llm.base import LLMInterface
from neo4j_graphrag.llm.types import (
BaseMessage,
LLMMessage,
LLMResponse,
MessageList,
SystemMessage,
UserMessage,
)
from neo4j_graphrag.message_history import MessageHistory
from neo4j_graphrag.types import LLMMessage

try:
from mistralai import Messages, Mistral
Expand Down
3 changes: 2 additions & 1 deletion src/neo4j_graphrag/llm/vertexai_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

from neo4j_graphrag.exceptions import LLMGenerationError
from neo4j_graphrag.llm.base import LLMInterface
from neo4j_graphrag.llm.types import BaseMessage, LLMMessage, LLMResponse, MessageList
from neo4j_graphrag.llm.types import BaseMessage, LLMResponse, MessageList
from neo4j_graphrag.message_history import MessageHistory
from neo4j_graphrag.types import LLMMessage

try:
from vertexai.generative_models import (
Expand Down
4 changes: 1 addition & 3 deletions src/neo4j_graphrag/message_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import neo4j
from pydantic import PositiveInt

from neo4j_graphrag.llm.types import (
LLMMessage,
)
from neo4j_graphrag.types import (
LLMMessage,
Neo4jDriverModel,
Neo4jMessageHistoryModel,
)
Expand Down

0 comments on commit 685882b

Please sign in to comment.