File tree Expand file tree Collapse file tree
learn-pr/wwl-data-ai/use-generative-ai-tools/includes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,17 +40,14 @@ response = client.responses.create(
4040 model = {model_deployment},
4141 instructions = " You are an AI assistant. Use web search when current information is required." ,
4242 input = " What are three major announcements from Microsoft Build this week?" ,
43- tools = [{" type" : " web_search_preview " }]
43+ tools = [{" type" : " web_search " }]
4444)
4545
4646print (response.output_text)
4747```
4848
4949The output will vary based on current web results, but it should include a concise answer grounded in recent sources.
5050
51- > [ !NOTE]
52- > When using the web_search tool with Microsoft Foundry, use the name * web_search_preview* .
53-
5451## How the web_search tool works
5552
5653The general process for using the web_search tool is:
You can’t perform that action at this time.
0 commit comments