File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 6
6
"source" : [
7
7
" # How to disable parallel tool calling\n " ,
8
8
" \n " ,
9
- " :::info OpenAI -specific\n " ,
9
+ " :::info Provider -specific\n " ,
10
10
" \n " ,
11
- " This API is currently only supported by OpenAI.\n " ,
11
+ " This API is currently only supported by OpenAI and Anthropic .\n " ,
12
12
" \n " ,
13
13
" :::\n " ,
14
14
" \n " ,
55
55
" import os\n " ,
56
56
" from getpass import getpass\n " ,
57
57
" \n " ,
58
- " from langchain_openai import ChatOpenAI \n " ,
58
+ " from langchain.chat_models import init_chat_model \n " ,
59
59
" \n " ,
60
60
" if \" OPENAI_API_KEY\" not in os.environ:\n " ,
61
61
" os.environ[\" OPENAI_API_KEY\" ] = getpass()\n " ,
62
62
" \n " ,
63
- " llm = ChatOpenAI(model= \" gpt-4o -mini\" , temperature=0 )"
63
+ " llm = init_chat_model( \" openai: gpt-4.1 -mini\" )"
64
64
]
65
65
},
66
66
{
121
121
"name" : " python" ,
122
122
"nbconvert_exporter" : " python" ,
123
123
"pygments_lexer" : " ipython3" ,
124
- "version" : " 3.11.9 "
124
+ "version" : " 3.10.4 "
125
125
}
126
126
},
127
127
"nbformat" : 4 ,
You can’t perform that action at this time.
0 commit comments