
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
azure-langchain-example
Advanced tools
Affected versions:
一个用于 Azure OpenAI 与 LangChain 集成的最小 Python 项目示例。
这个项目依赖官方的
langchain-openai包;它提供AzureChatOpenAI、AzureOpenAI和AzureOpenAIEmbeddings等 Azure OpenAI 封装。
pip install azure-langchain-example
若尚未发布到 PyPI,可在项目根目录执行:
pip install -e .
先在 Azure OpenAI 中创建模型部署,然后设置环境变量:
export AZURE_OPENAI_API_KEY="your-api-key"
export AZURE_OPENAI_ENDPOINT="https://your-resource-name.openai.azure.com/"
from langchain_openai import AzureChatOpenAI
llm = AzureChatOpenAI(
azure_deployment="your-deployment-name",
api_version="2024-05-01-preview",
temperature=0,
)
response = llm.invoke("用一句话解释什么是 RAG。")
print(response.content)
azure_deployment 是 Azure 门户中创建的部署名称,可能与底层模型名称不同。
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload --repository testpypi dist/*
确认测试安装无误后,上传正式 PyPI:
python -m twine upload dist/*
每次发布都必须增加 pyproject.toml 中的 version;PyPI 不允许覆盖已上传的版本。
MIT
FAQs
A minimal LangChain wrapper for Azure OpenAI
The pypi package azure-langchain-example receives a total of 7 weekly downloads. As such, azure-langchain-example popularity was classified as not popular.
We found that azure-langchain-example demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.