# hello-langchainjs **Repository Path**: sunshu/hello-langchainjs ## Basic Information - **Project Name**: hello-langchainjs - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-14 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Hello LangChainJS 本项目演示了如何使用 LangChain.js 结合多种大模型(如通义千问、智谱 AI)进行开发。 ## 环境配置 为了正常运行本项目,你需要配置相关的 API Key。请在项目根目录下创建一个 `.env` 文件,并添加以下配置: ```properties # 通义千问 (Qwen) API Key # 获取地址: https://bailian.console.aliyun.com/ DASHSCOPE_API_KEY=your_qwen_api_key_here # 智谱 AI (ZhipuAI) API Key # 获取地址: https://open.bigmodel.cn/ ZHIPUAI_API_KEY=your_zhipu_api_key_here ``` ### 环境变量说明 | 变量名 | 说明 | 作用 | | :--- | :--- | :--- | | `DASHSCOPE_API_KEY` | 阿里云 DashScope API Key | 用于调用通义千问系列模型 (如 qwen-vl-max, qwen-plus 等) | | `ZHIPUAI_API_KEY` | 智谱 AI API Key | 用于调用智谱 GLM 系列模型 (如 glm-4v 等) | ## 快速开始 1. 安装依赖: ```bash pnpm install ``` 2. 运行示例代码: ```bash node multimodal-prompts.js ```