mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 15:16:21 +00:00
lite llm lint (#9208)
This commit is contained in:
parent
49f1d8477c
commit
b5a57acf6c
@ -15,7 +15,7 @@ from typing import (
|
|||||||
Union,
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
from pydantic import BaseModel, Field, root_validator
|
from pydantic_v1 import Field, root_validator
|
||||||
|
|
||||||
from langchain.callbacks.manager import (
|
from langchain.callbacks.manager import (
|
||||||
AsyncCallbackManagerForLLMRun,
|
AsyncCallbackManagerForLLMRun,
|
||||||
@ -186,7 +186,7 @@ def _convert_message_to_dict(message: BaseMessage) -> dict:
|
|||||||
return message_dict
|
return message_dict
|
||||||
|
|
||||||
|
|
||||||
class ChatLiteLLM(BaseChatModel, BaseModel):
|
class ChatLiteLLM(BaseChatModel):
|
||||||
"""Wrapper around the LiteLLM Model I/O library.
|
"""Wrapper around the LiteLLM Model I/O library.
|
||||||
|
|
||||||
To use you must have the google.generativeai Python package installed and
|
To use you must have the google.generativeai Python package installed and
|
||||||
|
Loading…
Reference in New Issue
Block a user