File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
examples/tracing/langchain Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 20
20
"metadata" : {},
21
21
"outputs" : [],
22
22
"source" : [
23
- " !pip install openlayer"
23
+ " !pip install openlayer langchain langchain_openai "
24
24
]
25
25
},
26
26
{
39
39
"outputs" : [],
40
40
"source" : [
41
41
" import os\n " ,
42
- " import openai\n " ,
43
42
" \n " ,
44
43
" # OpenAI env variables\n " ,
45
44
" os.environ[\" OPENAI_API_KEY\" ] = \" YOUR_OPENAI_API_KEY_HERE\"\n " ,
92
91
"metadata" : {},
93
92
"outputs" : [],
94
93
"source" : [
95
- " from langchain_core.messages import HumanMessage\n " ,
96
94
" from langchain_openai import ChatOpenAI"
97
95
]
98
96
},
113
111
"metadata" : {},
114
112
"outputs" : [],
115
113
"source" : [
116
- " chat.invoke([HumanMessage(content= \" What's the meaning of life?\" )] )"
114
+ " chat.invoke(\" What's the meaning of life?\" )"
117
115
]
118
116
},
119
117
{
149
147
"name" : " python" ,
150
148
"nbconvert_exporter" : " python" ,
151
149
"pygments_lexer" : " ipython3" ,
152
- "version" : " 3.9.18 "
150
+ "version" : " 3.9.6 "
153
151
}
154
152
},
155
153
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments