Hello Gokulamurthy Purushothaman,
You're correct in observing that GPT-5 preview models (gpt-5, gpt-5-chat) currently have limited support for the data_sources parameter that enables Azure AI Search / "On Your Data" integration. This is a known limitation with the preview release.
Current Status:
The GPT-5 models in the 2025-01-01-preview API version are in early preview and do not yet have full feature parity with GPT-4 models. The data_sources parameter and Azure AI Search grounding capabilities are among the features still being rolled out for GPT-5 series.
Why This Happens:
- Preview Limitations: The GPT-5 models are in preview status, and Microsoft is gradually enabling features as they validate performance and compatibility
- API Version Dependencies: The extensions API (extensions.chat.completion) that handles data_sources integration may not be fully implemented for GPT-5 yet
- Feature Rollout Strategy: Microsoft typically releases new models with core capabilities first, then adds advanced features like RAG (Retrieval-Augmented Generation) integration
Current Workarounds:
- Use GPT-4o or GPT-4o-mini: For production workloads requiring Azure AI Search integration, continue using GPT-4o-mini or GPT-4 models which fully support data_sources
- Implement Custom RAG: You can implement your own retrieval logic by:
- Querying Azure AI Search directly
- Including retrieved context in your system message or user prompt
- Sending the enriched prompt to GPT-5
- Monitor Preview Updates: Since this is a preview API, capabilities are being added regularly
Example Custom RAG Pattern:
# Query Azure Search separately
search_results = azure_search_client.search(query)
context = "\n".join([doc['content'] for doc in search_results])
# Include context in prompt
messages = [
{"role": "system", "content": f"Answer based on this context: {context}"},
{"role": "user", "content": user_query}
]
# Call GPT-5 without data_sources parameter
response = openai_client.chat.completions.create(
model="gpt-5-chat",
messages=messages
)
Next Steps:
- Check Azure Updates: Monitor the Azure OpenAI What's New page for announcements about GPT-5 feature availability
- Review API Changelog: The 2025-01-01-preview API is still evolving, and data_sources support may be added in upcoming preview versions
- Provide Feedback: Report this through Azure Portal feedback to help prioritize the feature
Expected Timeline:
While I don't have specific dates, data_sources support for GPT-5 models will likely be added as the preview progresses toward general availability. For now, GPT-4o-mini offers excellent performance with full Azure AI Search integration if you need that capability immediately.
Best Regards,
Jerald Felix