Skip to content

Commit

Permalink
fix: get function from openai
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanhNguye-n committed Jun 10, 2024
1 parent d025052 commit f579071
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/community/langchain_community/chat_models/llamacpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@
from langchain_core.tools import BaseTool
from langchain_core.utils.function_calling import convert_to_openai_tool

from langchain_community.chat_models.chat_models.base import (
from langchain_openai.chat_models.base import (
_convert_delta_to_message_chunk,
_convert_dict_to_message,
_convert_message_to_dict,
_convert_message_to_dict
)


class ChatLlamaCpp(BaseChatModel):

Check failure on line 43 in libs/community/langchain_community/chat_models/llamacpp.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.11

Ruff (I001)

langchain_community/chat_models/llamacpp.py:1:1: I001 Import block is un-sorted or un-formatted
"""llama.cpp model.
Expand Down

0 comments on commit f579071

Please sign in to comment.