{ "model": "openai/gpt-5.4", "messages": [{"role": "user", "content": "What are the top AI news stories today?"}], "tools": [{"type": "arouter", "arouter": {"id": "web_search"}}]}
TypeScript
Python
cURL
const response = await client.chat.completions.create({ model: "openai/gpt-5.4", messages: [{ role: "user", content: "What are the top AI news stories today?" }], tools: [{ type: "arouter", arouter: { id: "web_search" } } as any],});console.log(response.choices[0].message.content);
response = client.chat.completions.create( model="openai/gpt-5.4", messages=[{"role": "user", "content": "What are the top AI news stories today?"}], tools=[{"type": "arouter", "arouter": {"id": "web_search"}}],)print(response.choices[0].message.content)