[GH-ISSUE #5471] The upgrade of langchain-openai caused some functions that depend on it to fail #52658

Closed
opened 2026-05-05 13:45:26 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @CookSleep on GitHub (Sep 17, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5471

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: v0.3.21
  • Operating System: Ubuntu 22.04
  • Browser: Edge 128.0.2739.79

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

The various functions of langchain-openai work normally

Actual Behavior:

The various functions of langchain-openai do not work properly, and the following error is shown during import:

Something went wrong :/ no validator found for <class 'langchain_core.callbacks.base.BaseCallbackHandler'>, see arbitrary_types_allowed in Config

Description

Bug Summary:
The upgrade of langchain-openai caused some functions that depend on it to fail

Reproduction Details

Steps to Reproduce:

  1. Import any function that requires langchain-openai, using OpenAI ReAct Agent as an example
  2. This function works with langchain-openai==0.1.24, but completely fails in the latest version. When re-importing, you will encounter:
Something went wrong :/ no validator found for <class 'langchain_core.callbacks.base.BaseCallbackHandler'>, see arbitrary_types_allowed in Config

You may need to rebuild the container to trigger this issue, as langchain-openai may not have been upgraded previously

Originally created by @CookSleep on GitHub (Sep 17, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/5471 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** v0.3.21 - **Operating System:** Ubuntu 22.04 - **Browser:** Edge 128.0.2739.79 **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: The various functions of `langchain-openai` work normally ## Actual Behavior: The various functions of `langchain-openai` do not work properly, and the following error is shown during import: ``` Something went wrong :/ no validator found for <class 'langchain_core.callbacks.base.BaseCallbackHandler'>, see arbitrary_types_allowed in Config ``` ## Description **Bug Summary:** The upgrade of `langchain-openai` caused some functions that depend on it to fail ## Reproduction Details **Steps to Reproduce:** 1. Import any function that requires `langchain-openai`, using [OpenAI ReAct Agent](https://www.openwebui.com/f/michaelpoluektov/openai_react) as an example 2. This function works with `langchain-openai==0.1.24`, but completely fails in the latest version. When re-importing, you will encounter: ``` Something went wrong :/ no validator found for <class 'langchain_core.callbacks.base.BaseCallbackHandler'>, see arbitrary_types_allowed in Config ``` > You may need to rebuild the container to trigger this issue, as `langchain-openai` may not have been upgraded previously
Author
Owner

@tjbck commented on GitHub (Sep 17, 2024):

langchain-openai is not shipped with open-webui.

<!-- gh-comment-id:2356207545 --> @tjbck commented on GitHub (Sep 17, 2024): `langchain-openai` is not shipped with open-webui.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#52658