Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Jul 21, 2023
1 parent b7f5edc commit 1a6a5f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion libs/langchain/langchain/callbacks/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ async def _ahandle_event(
) -> None:
"""Generic event handler for AsyncCallbackManager."""
for handler in [h for h in handlers if h.run_inline]:
logger.error(f"HANDLING: {handler}")
await _ahandle_event_for_handler(
handler, event_name, ignore_condition_name, *args, **kwargs
)
Expand Down
7 changes: 2 additions & 5 deletions libs/langchain/langchain/chat_models/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,15 @@
Union,
)

from libs.langchain.langchain.llms.base import create_base_retry_decorator
from pydantic import Field, root_validator

from langchain.callbacks.manager import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
)
from langchain.chat_models.base import BaseChatModel
from langchain.schema import (
ChatGeneration,
ChatResult,
)
from langchain.llms.base import create_base_retry_decorator
from langchain.schema import ChatGeneration, ChatResult
from langchain.schema.messages import (
AIMessage,
BaseMessage,
Expand Down

0 comments on commit 1a6a5f9

Please sign in to comment.