Azure Responses API web_search_preview works, but LibreChat doesn’t map citations to web_search attachments (raw link output) #11100
-
What happened?Summary:
Important context:
Example raw output (direct Azure call, trimmed) (see full logs in "Relevant log output") Why this matters:
Additionally, a UI toggle (web/browser icon) would make this much more usable:
What did you expect to happen?
Where it likely goes wrong (code locations)
Possible fix direction (concept)
Version Informationv0.8.1 Steps to Reproduce
What browsers are you seeing the problem on?No response Relevant log outputRaw output of a direct web_search_preview request to azure openai. Both gpt-4.1 and gpt-5.2 are working:
===== MODEL: gpt-4.1 =====
{
"id": "resp_0e004ad4b2d70c63006xxxxx481958a3b8edf2b663d31",
"object": "response",
"created_at": 1766389xxx1,
"status": "completed",
"background": false,
"content_filters": null,
"error": null,
"incomplete_details": null,
"instructions": null,
"max_output_tokens": null,
"max_tool_calls": null,
"model": "gpt-4.1",
"output": [
{
"id": "ws_0e004ad4b2d70c63006948xxxx95bc2a7fb957a9f06e",
"type": "web_search_call",
"status": "searching",
"action": {
"type": "search",
"query": "feiten over ASML met bronvermelding"
}
},
{
"id": "msg_0e004ad4b2d70c6xxxxxx952e1a3a29f159da",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [
{
"type": "url_citation",
"end_index": 484,
"start_index": 412,
"title": "10 Weetjes over ASML - Newuni",
"url": "https://newuni.nl/10-weetjes-over-asml/"
},
{
"type": "url_citation",
"end_index": 1181,
"start_index": 1102,
"title": "50 Facts About ASML",
"url": "https://facts.net/tech-and-sciences/50-facts-about-asml/"
},
{
"type": "url_citation",
"end_index": 878,
"start_index": 774,
"title": "ASML | Doorgelicht - BNR Nieuwsradio",
"url": "https://www.bnr.nl/podcast/doorgelicht/10541092/asml-doorgelicht"
}
],
"logprobs": [],
"text": "Hier zijn drie feiten over ASML, elk met bron:\n\n1. **ASML is de enige fabrikant ter wereld van zogenaamde EUV-machines (Extreme Ultraviolet Lithography), waarmee de meest geavanceerde chips worden gemaakt die nodig zijn voor smartphones en computers**. Deze geavanceerde machines kosten ruim 200 miljoen euro per stuk en worden alleen door een handvol bedrijven wereldwijd gebruikt, zoals TSMC, Samsung en Intel [10 Weetjes over ASML - Newuni](https://newuni.nl/10-weetjes-over-asml/).\n\n2. **ASML werd in 1984 opgericht als een joint venture tussen Philips en ASM International**. Wat begon als een bescheiden project in een houten keet op het Philips-terrein in Veldhoven, groeide uit tot een wereldspeler in chiptechnologie en \u00e9\u00e9n van de grootste werkgevers van Nederland [ASML | Doorgelicht - BNR Nieuwsradio](https://www.bnr.nl/podcast/doorgelicht/10541092/asml-doorgelicht).\n\n3. **Met een beurswaarde van meer dan 300 miljard euro is ASML \u00e9\u00e9n van de meest waardevolle bedrijven van Europa en heeft het wereldwijd meer dan 42.000 mensen in dienst**, afkomstig uit meer dan 140 verschillende landen [50 Facts About ASML](https://facts.net/tech-and-sciences/50-facts-about-asml/).\n\nLaat het gerust weten als je meer feiten of context wilt!"
}
],
"role": "assistant"
}
],
"parallel_tool_calls": true,
"previous_response_id": null,
"prompt_cache_key": null,
"prompt_cache_retention": null,
"reasoning": {
"effort": null,
"summary": null
},
"safety_identifier": null,
"service_tier": "default",
"store": true,
"temperature": 1.0,
"text": {
"format": {
"type": "text"
},
"verbosity": "medium"
},
"tool_choice": "auto",
"tools": [
{
"type": "web_search_preview",
"search_context_size": "medium",
"user_location": {
"type": "approximate",
"city": null,
"country": "US",
"region": null,
"timezone": null
}
}
],
"top_logprobs": 0,
"top_p": 1.0,
"truncation": "disabled",
"usage": {
"input_tokens": 7793,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 323,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 8116
},
"user": null,
"metadata": {}
}
===== MODEL: gpt-5.2 =====
{
"id": "resp_081afaf685f5b51c006948xxxxx7c72a01c43928a6",
"object": "response",
"created_at": 1766xxx9057,
"status": "completed",
"background": false,
"content_filters": null,
"error": null,
"incomplete_details": null,
"instructions": null,
"max_output_tokens": null,
"max_tool_calls": null,
"model": "gpt-5.2",
"output": [
{
"id": "ws_081afaf685fxxxxxf5438d408196a39bdad9d1c7f8c3",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"query": "ASML founded 1984 date"
}
},
{
"id": "msg_081afaf6xx51c00694xxxxxxx68869ea9d0bb9c150",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [
{
"type": "url_citation",
"end_index": 425,
"start_index": 340,
"title": "2024 Annual Report - asml.com",
"url": "https://www.asml.com/en/investors/annual-report/2024"
},
{
"type": "url_citation",
"end_index": 625,
"start_index": 425,
"title": "ASML N : Full report (2024 Annual Report based on US GAAP)",
"url": "https://www.marketscreener.com/quote/stock/ASML-HOLDING-N-V-12002973/news/ASML-N-Full-report-2024-Annual-Report-based-on-US-GAAP-49239651/"
},
{
"type": "url_citation",
"end_index": 837,
"start_index": 625,
"title": "ASML reports \u20ac7.5 billion total net sales and \u20ac2.1 billion",
"url": "https://www.globenewswire.com/news-release/2024/10/15/2963456/0/en/ASML-reports-7-5-billion-total-net-sales-and-2-1-billion-net-income-in-Q3-2024.html"
}
],
"logprobs": [],
"text": "1) **ASML is opgericht op 1 april 1984** (als ASM Lithography), als **joint venture van Philips en ASM International**. \n\n2) **Het wereldwijde hoofdkantoor van ASML staat in Veldhoven (Nederland)**, in de regio Brainport Eindhoven. \n\n3) **ASML rapporteerde in 2024 een totale netto-omzet van \u20ac28,3 miljard** (volgens het jaarverslag 2024). [2024 Annual Report - asml.com](https://www.asml.com/en/investors/annual-report/2024)[ASML N : Full report (2024 Annual Report based on US GAAP)](https://www.marketscreener.com/quote/stock/ASML-HOLDING-N-V-12002973/news/ASML-N-Full-report-2024-Annual-Report-based-on-US-GAAP-49239651/)[ASML reports \u20ac7.5 billion total net sales and \u20ac2.1 billion](https://www.globenewswire.com/news-release/2024/10/15/2963456/0/en/ASML-reports-7-5-billion-total-net-sales-and-2-1-billion-net-income-in-Q3-2024.html)"
}
],
"role": "assistant"
}
],
"parallel_tool_calls": true,
"previous_response_id": null,
"prompt_cache_key": null,
"prompt_cache_retention": null,
"reasoning": {
"effort": "none",
"summary": null
},
"safety_identifier": null,
"service_tier": "default",
"store": true,
"temperature": 1.0,
"text": {
"format": {
"type": "text"
},
"verbosity": "medium"
},
"tool_choice": "auto",
"tools": [
{
"type": "web_search_preview",
"search_context_size": "medium",
"user_location": {
"type": "approximate",
"city": null,
"country": "US",
"region": null,
"timezone": null
}
}
],
"top_logprobs": 0,
"top_p": 0.98,
"truncation": "disabled",
"usage": {
"input_tokens": 11394,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 242,
"output_tokens_details": {
"reasoning_tokens": 98
},
"total_tokens": 11636
},
"user": null,
"metadata": {}
}Screenshots
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
|
@GPTLeonard thank you for this extensive write-up! @danny-avila so using the server side payload from (azure) openai responses api to display citations is not planned by the core team correct? Can this be a contribution from the open source community if done right? |
Beta Was this translation helpful? Give feedback.


@MTR3K Problem is now fixed, it was indeed a problem from the Azure side. GPT-5+ are now supporting websearch