Skip to content

Commit

Permalink
fix: upgrade langsmith sdk (#374)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: zhouxiao.shaw <[email protected]>
  • Loading branch information
yuyutaotao and zhoushaw authored Feb 10, 2025
1 parent d1e2e2b commit 01b2461
Show file tree
Hide file tree
Showing 4 changed files with 689 additions and 209 deletions.
10 changes: 6 additions & 4 deletions apps/site/docs/en/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ LangSmith is a platform designed to debug the LLMs. To integrate LangSmith, plea
export MIDSCENE_LANGSMITH_DEBUG=1

# LangSmith config
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
export LANGCHAIN_API_KEY="your_key_here"
export LANGCHAIN_PROJECT="your_project_name_here"
export LANGSMITH_TRACING_V2=true
export LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
export LANGSMITH_API_KEY="your_key_here"
export LANGSMITH_PROJECT="your_project_name_here"

# Due to a backward compatibility issue of LangSmith, for users who use Midscene <= 0.10.6, you need to set the variables starting with `LANGCHAIN_` instead of `LANGSMITH_`.
```

Launch Midscene, you should see logs like this:
Expand Down
8 changes: 4 additions & 4 deletions apps/site/docs/zh/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ LangSmith 是一个用于调试大语言模型的平台。想要集成 LangSmith
export MIDSCENE_LANGSMITH_DEBUG=1

# LangSmith 配置
export LANGCHAIN_TRACING_V2=true
export LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
export LANGCHAIN_API_KEY="your_key_here"
export LANGCHAIN_PROJECT="your_project_name_here"
export LANGSMITH_TRACING_V2=true
export LANGSMITH_ENDPOINT="https://api.smith.langchain.com"
export LANGSMITH_API_KEY="your_key_here"
export LANGSMITH_PROJECT="your_project_name_here"
```

启动 Midscene 后,你应该会看到类似如下的日志:
Expand Down
12 changes: 6 additions & 6 deletions packages/midscene/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@azure/identity": "4.5.0",
"@ui-tars/action-parser": "1.0.1",
"@anthropic-ai/sdk": "0.33.1",
"@midscene/shared": "workspace:*",
"@azure/identity": "4.5.0",
"@langchain/core": "0.3.26",
"socks-proxy-agent": "8.0.4",
"openai": "4.81.0"
"@midscene/shared": "workspace:*",
"@ui-tars/action-parser": "1.0.1",
"openai": "4.81.0",
"socks-proxy-agent": "8.0.4"
},
"devDependencies": {
"@modern-js/module-tools": "2.60.6",
"@types/node": "^18.0.0",
"@types/node-fetch": "2.6.11",
"dirty-json": "0.9.2",
"dotenv": "16.4.5",
"langsmith": "0.1.36",
"langsmith": "0.3.7",
"typescript": "~5.0.4",
"vitest": "^1.6.0"
},
Expand Down
Loading

0 comments on commit 01b2461

Please sign in to comment.