You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-langchain-openai-0.3.16-1.lbn36.noarch

python3-langchain-openai-0.3.16-1.lbn36.noarch

Package Attributes
RPM  python3-langchain-openai-0.3.16-1.lbn36.noarch.rpm Architecture  noarch Size  462863 Created  2025/05/13 02:04:21 UTC
Package Specification
Summary An integration package connecting OpenAI and LangChain
Group Unspecified
License ZPL
Home Page https://pypi.org/project/langchain-openai
Description

langchain-openai This package contains the LangChain integrations for OpenAI through their openai SDK. Installation and Setup

Install the LangChain partner package

pip install langchain-openai

Get an OpenAI api key and set it as an environment variable (OPENAI_API_KEY)

LLM See a usage example. from langchain_openai import OpenAI

If you are using a model hosted on Azure, you should use different wrapper for that: from langchain_openai import AzureOpenAI

For a more detailed walkthrough of the Azure wrapper, see here Chat model from langchain_openai import ChatOpenAI

from langchain_openai import AzureChatOpenAI

Text Embedding Model See a usage example from langchain_openai import OpenAIEmbeddings

from langchain_openai import AzureOpenAIEmbeddings

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
(python3.10dist(tiktoken) < 1~~ with python3.10dist(tiktoken) >= 0.7)  
rpmlib(CompressedFileNames)  
(python3.10dist(langchain-core) < 1~~ with python3.10dist(langchain-core) >= 0.3.58)  
(python3.10dist(openai) < 2~~ with python3.10dist(openai) >= 1.68.2)  
rpmlib(RichDependencies)  
rpmlib(FileDigests)  
rpmlib(PartialHardlinkSets)  
rpmlib(TildeInVersions)  
Provides
python-langchain-openai
python3-langchain-openai
python3.10-langchain-openai
python3.10dist(langchain-openai)
python3dist(langchain-openai)
Obsoletes
python-langchain-openai

Document Actions