Files
big-agi/docs
paulhshort 9fe5697fd4 Fix Azure OpenAI Resource Not Found errors for GPT-5 and o3 models (#828)
This commit addresses GitHub issue #828 by fixing URL construction for Azure OpenAI's Responses API
and preventing malformed URLs from client configuration issues.

## Problems Fixed:
1. Host normalization: Prevents malformed URLs when client config includes paths/queries
2. API paradigm support: Properly handles Azure's next-gen v1 Responses API
3. API version consistency: Centralizes version management with env overrides

## Key Changes:
- Normalize Azure host URLs to origin only (strip path/query)
- Prefer server environment variables over client-provided hosts
- Add special handling for Responses API (/openai/v1/responses)
- Support both traditional (deployment-based) and v1 API paradigms
- Add configurable API versions via environment variables
- Include debug logging for API paradigm selection

## New Environment Variables:
- AZURE_API_V1: Enable next-gen v1 API explicitly
- AZURE_RESPONSES_API_VERSION: Control Responses API version
- AZURE_CHAT_API_VERSION: Control Chat Completions API version
- AZURE_DEPLOYMENTS_API_VERSION: Control deployments listing API version

## Testing:
Validated with Azure OpenAI endpoint showing:
- List Deployments:  Works
- Chat Completions:  Works (with correct params for GPT-5)
- Responses API (v1):  Works with /openai/v1/responses?api-version=preview
- Responses API (traditional):  404 (Azure doesn't support this pattern)

The fix defaults to using Azure's recommended next-gen v1 API for Responses
while maintaining backward compatibility for existing deployments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-11 19:37:41 -04:00
..
2025-01-31 11:13:33 -08:00
2024-04-09 10:09:37 +02:00
2024-04-09 10:09:37 +02:00
2024-07-23 04:33:34 -07:00
2024-11-20 22:43:13 -08:00
2024-10-12 19:38:39 -07:00
2025-02-02 09:26:08 -08:00
2024-09-19 13:38:13 -07:00
2025-02-02 09:52:52 -08:00
2024-08-05 19:51:42 -07:00

Big-AGI Documentation

Information you need to get started, configure, and use big-AGI productively.

Getting Started

Essential guides:

AI Services

How to set up AI models and features in big-AGI.

👉 The following applies to users of big-AGI.com, as the public instance is empty and requires user configuration.

Deployment & Customization

👉 The following applies to developers and experts who deploy their own big-AGI instance.

For deploying a custom big-AGI instance:

Community & Support

Let's build something great.