Repository: langchain
Issue: AzureMLChatOnlineEndpoint for BLOOM with CustomOpenAIChatContentFormatter HTTPError: HTTP Error 424: Failed Dependency
Labels: 🤖:bug

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

from langchain_community.chat_models.azureml_endpoint import (
    AzureMLEndpointApiType,
    CustomOpenAIChatContentFormatter,
    AzureMLChatOnlineEndpoint, 
    AzureMLBaseEndpoint
)
from langchain_core.messages import HumanMessage,SystemMessage


llm = AzureMLChatOnlineEndpoint(
    endpoint_url="https://myproject.xxx.inference.ml.azure.com/score",
    endpoint_api_type=AzureMLEndpointApiType.dedicated,
    endpoint_api_key=os.environ["BLOOM_API_KEY"],
    content_formatter=CustomOpenAIChatContentFormatter(),
    model_kwargs={"temperature": 0.5}
)

response = llm.invoke(
       [
           ("system", "You are an AI tasked to convert complex text into simpler, more readable text."),
           ("user", "Hi")
       ]
   )

print(response)


### Error Message and Stack Trace (if applicable)

---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
Cell In[88], [line 18](vscode-notebook-cell:?execution_count=88&line=18)
      [7](vscode-notebook-cell:?execution_count=88&line=7) from langchain_core.messages import HumanMessage,SystemMessage
     [10](vscode-notebook-cell:?execution_count=88&line=10) llm = AzureMLChatOnlineEndpoint(
     [11](vscode-notebook-cell:?execution_count=88&line=11)     endpoint_url="https://bloom7b.swedencentral.inference.ml.azure.com/score",
     [12](vscode-notebook-cell:?execution_count=88&line=12)     endpoint_api_type=AzureMLEndpointApiType.dedicated,
   (...)
     [15](vscode-notebook-cell:?execution_count=88&line=15)     model_kwargs={"temperature": 0.5}
     [16](vscode-notebook-cell:?execution_count=88&line=16) )
---> [18](vscode-notebook-cell:?execution_count=88&line=18) response = llm.invoke(
     [19](vscode-notebook-cell:?execution_count=88&line=19)        [
     [20](vscode-notebook-cell:?execution_count=88&line=20)            ("system", "You are an AI tasked to convert complex text into simpler, more readable text."),
     [21](vscode-notebook-cell:?execution_count=88&line=21)            ("user", "Hi")
     [22](vscode-notebook-cell:?execution_count=88&line=22)        ]
     [23](vscode-notebook-cell:?execution_count=88&line=23)    )
     [25](vscode-notebook-cell:?execution_count=88&line=25) print(response)

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_core\language_models\chat_models.py:284, in BaseChatModel.invoke(self, input, config, stop, **kwargs)
    [273](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:273) def invoke(
    [274](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:274)     self,
    [275](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:275)     input: LanguageModelInput,
   (...)
    [279](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:279)     **kwargs: Any,
    [280](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:280) ) -> BaseMessage:
    [281](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:281)     config = ensure_config(config)
    [282](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:282)     return cast(
    [283](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:283)         ChatGeneration,
--> [284](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:284)         self.generate_prompt(
    [285](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:285)             [self._convert_input(input)],
    [286](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:286)             stop=stop,
    [287](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:287)             callbacks=config.get("callbacks"),
    [288](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:288)             tags=config.get("tags"),
    [289](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:289)             metadata=config.get("metadata"),
    [290](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:290)             run_name=config.get("run_name"),
    [291](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:291)             run_id=config.pop("run_id", None),
    [292](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:292)             **kwargs,
    [293](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:293)         ).generations[0][0],
    [294](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:294)     ).message

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_core\language_models\chat_models.py:784, in BaseChatModel.generate_prompt(self, prompts, stop, callbacks, **kwargs)
    [776](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:776) def generate_prompt(
    [777](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:777)     self,
    [778](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:778)     prompts: list[PromptValue],
   (...)
    [781](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:781)     **kwargs: Any,
    [782](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:782) ) -> LLMResult:
    [783](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:783)     prompt_messages = [p.to_messages() for p in prompts]
--> [784](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:784)     return self.generate(prompt_messages, stop=stop, callbacks=callbacks, **kwargs)

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_core\language_models\chat_models.py:641, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, run_id, **kwargs)
    [639](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:639)         if run_managers:
    [640](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:640)             run_managers[i].on_llm_error(e, response=LLMResult(generations=[]))
--> [641](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:641)         raise e
    [642](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:642) flattened_outputs = [
    [643](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:643)     LLMResult(generations=[res.generations], llm_output=res.llm_output)  # type: ignore[list-item]
    [644](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:644)     for res in results
    [645](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:645) ]
    [646](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:646) llm_output = self._combine_llm_outputs([res.llm_output for res in results])

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_core\language_models\chat_models.py:631, in BaseChatModel.generate(self, messages, stop, callbacks, tags, metadata, run_name, run_id, **kwargs)
    [628](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:628) for i, m in enumerate(messages):
    [629](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:629)     try:
    [630](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:630)         results.append(
--> [631](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:631)             self._generate_with_cache(
    [632](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:632)                 m,
    [633](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:633)                 stop=stop,
    [634](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:634)                 run_manager=run_managers[i] if run_managers else None,
    [635](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:635)                 **kwargs,
    [636](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:636)             )
    [637](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:637)         )
    [638](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:638)     except BaseException as e:
    [639](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:639)         if run_managers:

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_core\language_models\chat_models.py:853, in BaseChatModel._generate_with_cache(self, messages, stop, run_manager, **kwargs)
    [851](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:851) else:
    [852](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:852)     if inspect.signature(self._generate).parameters.get("run_manager"):
--> [853](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:853)         result = self._generate(
    [854](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:854)             messages, stop=stop, run_manager=run_manager, **kwargs
    [855](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:855)         )
    [856](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:856)     else:
    [857](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_core/language_models/chat_models.py:857)         result = self._generate(messages, stop=stop, **kwargs)

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_community\chat_models\azureml_endpoint.py:277, in AzureMLChatOnlineEndpoint._generate(self, messages, stop, run_manager, **kwargs)
    [272](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:272)     _model_kwargs["stop"] = stop
    [274](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:274) request_payload = self.content_formatter.format_messages_request_payload(
    [275](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:275)     messages, _model_kwargs, self.endpoint_api_type
    [276](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:276) )
--> [277](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:277) response_payload = self.http_client.call(
    [278](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:278)     body=request_payload, run_manager=run_manager
    [279](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:279) )
    [280](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:280) generations = self.content_formatter.format_response_payload(
    [281](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:281)     response_payload, self.endpoint_api_type
    [282](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:282) )
    [283](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/chat_models/azureml_endpoint.py:283) return ChatResult(generations=[generations])

File c:\POC\sandbox\notebooks-for-testing\.venv\Lib\site-packages\langchain_community\llms\azureml_endpoint.py:57, in AzureMLEndpointClient.call(self, body, run_manager, **kwargs)
     [54](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:54)     headers["azureml-model-deployment"] = self.deployment_name
     [56](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:56) req = urllib.request.Request(self.endpoint_url, body, headers)
---> [57](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:57) response = urllib.request.urlopen(
     [58](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:58)     req, timeout=kwargs.get("timeout", self.timeout)
     [59](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:59) )
     [60](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:60) result = response.read()
     [61](file:///C:/POC/sandbox/notebooks-for-testing/.venv/Lib/site-packages/langchain_community/llms/azureml_endpoint.py:61) return result

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:216, in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    [214](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:214) else:
    [215](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:215)     opener = _opener
--> [216](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:216) return opener.open(url, data, timeout)

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:525, in OpenerDirector.open(self, fullurl, data, timeout)
    [523](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:523) for processor in self.process_response.get(protocol, []):
    [524](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:524)     meth = getattr(processor, meth_name)
--> [525](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:525)     response = meth(req, response)
    [527](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:527) return response

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:634, in HTTPErrorProcessor.http_response(self, request, response)
    [631](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:631) # According to RFC 2616, "2xx" code indicates that the client's
    [632](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:632) # request was successfully received, understood, and accepted.
    [633](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:633) if not (200 <= code < 300):
--> [634](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:634)     response = self.parent.error(
    [635](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:635)         'http', request, response, code, msg, hdrs)
    [637](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:637) return response

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:563, in OpenerDirector.error(self, proto, *args)
    [561](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:561) if http_err:
    [562](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:562)     args = (dict, 'default', 'http_error_default') + orig_args
--> [563](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:563)     return self._call_chain(*args)

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:496, in OpenerDirector._call_chain(self, chain, kind, meth_name, *args)
    [494](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:494) for handler in handlers:
    [495](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:495)     func = getattr(handler, meth_name)
--> [496](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:496)     result = func(*args)
    [497](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:497)     if result is not None:
    [498](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:498)         return result

File ~\.pyenv\pyenv-win\versions\3.11.3\Lib\urllib\request.py:643, in HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs)
    [642](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:642) def http_error_default(self, req, fp, code, msg, hdrs):
--> [643](https://file+.vscode-resource.vscode-cdn.net/c%3A/POC/sandbox/notebooks-for-testing/ai-agents/~/.pyenv/pyenv-win/versions/3.11.3/Lib/urllib/request.py:643)     raise HTTPError(req.full_url, code, msg, hdrs, fp)

HTTPError: HTTP Error 424: Failed Dependency

### Description

Trying to connect to BLOOM through the AZURE AI Studio deployed endpoint

### System Info


System Information
------------------
> OS:  Windows
> OS Version:  10.0.19045
> Python Version:  3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)]

Package Information
-------------------
> langchain_core: 0.3.5
> langchain: 0.3.0
> langchain_community: 0.3.0
> langsmith: 0.1.125
> langchain_huggingface: 0.1.0
> langchain_openai: 0.2.0     
> langchain_text_splitters: 0.3.0

Optional packages not installed  
-------------------------------  
> langgraph
> langserve

Other Dependencies
------------------
> aiohttp: 3.10.5
> async-timeout: Installed. No version info available.
> dataclasses-json: 0.6.7
> httpx: 0.27.2
> huggingface-hub: 0.25.0
> jsonpatch: 1.33
> numpy: 1.26.4
> openai: 1.47.0
> orjson: 3.10.7
> packaging: 24.1
> pydantic: 2.9.2
> pydantic-settings: 2.5.2
> PyYAML: 6.0.2
> requests: 2.32.3
> sentence-transformers: 3.1.1
> SQLAlchemy: 2.0.35
> tenacity: 8.5.0
> tiktoken: 0.7.0
> tokenizers: 0.19.1
> transformers: 4.44.2