Skip to content

Commit 4caf024

Browse files
authored
0.0.83 : Add revision ID (#366)
1 parent 72db54b commit 4caf024

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

python/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ os.environ["LANGCHAIN_API_KEY"] = "<YOUR-LANGSMITH-API-KEY>"
5757
If the environment variables are correctly set, your application will automatically connect to the LangSmith platform.
5858

5959
```python
60-
from langchain.chat_models import ChatOpenAI
60+
from langchain_core.runnables import chain
6161

62-
chat = ChatOpenAI()
63-
response = chat.predict(
64-
"Translate this sentence from English to French. I love programming."
65-
)
66-
print(response)
62+
@chain
63+
def add_val(x: dict) -> dict:
64+
return {"val": x["val"] + 1}
65+
66+
add_val({"val": 1})
6767
```
6868

6969
### Logging Traces Outside LangChain

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langsmith"
3-
version = "0.0.82"
3+
version = "0.0.83"
44
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
55
authors = ["LangChain <support@langchain.dev>"]
66
license = "MIT"

0 commit comments

Comments
 (0)