Skip to content

Commit e30cfb2

Browse files
Merge pull request #54353 from GraemeMalcolm/main
web_search no longer in preview
2 parents 90f1785 + 11d417d commit e30cfb2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

learn-pr/wwl-data-ai/use-generative-ai-tools/includes/04-web-search.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

4646
print(response.output_text)
4747
```
4848

4949
The 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

5653
The general process for using the web_search tool is:

0 commit comments

Comments
 (0)