Commit Graph

119 Commits

Author SHA1 Message Date
Enrico Ros 0d4db0322b tRPC: decode gemini 403 !ok 2025-10-03 12:40:28 -07:00
Enrico Ros 75215955be AIX: export server Context type 2025-09-29 19:29:10 -07:00
Enrico Ros 1e1206ab7e Merge branch 'fork/powyncify/v2-dev-paulshort' into v2-dev
# Conflicts:
#	.claude/settings.local.json
#	src/modules/aix/server/dispatch/chatGenerate/adapters/openai.responsesCreate.ts
2025-09-12 14:27:31 -07:00
Enrico Ros 39a7e30880 AIX: Azure OpenAI: renamed Env Vars 2025-09-12 13:58:23 -07:00
Enrico Ros e420fa9661 Server-side fetchers: note the abort path 2025-08-17 14:10:34 -07:00
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
Enrico Ros e983f9d8a9 Domain for errors 2025-07-29 16:09:46 -07:00
Enrico Ros b1a026bdd1 Prodia: remove for now as the API keeps changing and is not a good default for our users - may put this back anytime (#786) 2025-07-26 11:06:34 -07:00
Enrico Ros 6fe0e297eb Remove Prodia image generation - does not seem to be up to the quality par 2025-07-26 08:46:49 -07:00
Enrico Ros d7765ae578 PostHog errors: add node/edge utility functions 2025-07-21 13:28:19 -07:00
Enrico Ros 0dd043cb6a Zod: tree-shakeable 2025-06-26 15:51:48 -07:00
Enrico Ros 1ebd1d9e15 Zod-4: reduce deprecated 2025-06-26 12:47:33 -07:00
Enrico Ros 4dde3d0fe7 Zod-4: Migrate 2025-06-26 12:01:40 -07:00
Enrico Ros 2894c07049 Next Edge/tRPC: server-side delay (improved workaround) for the 'Stream closed' issue only. #805 2025-05-26 14:11:02 -07:00
Enrico Ros 3ba3ab41d2 Denooise 2025-04-25 16:13:04 -07:00
Enrico Ros 4e8e7fa6cf tRPC fetchers: debug wire curl 2025-04-25 15:38:38 -07:00
Enrico Ros a79806e86c tRPC fetchers: support FormData automatically 2025-04-25 15:38:38 -07:00
Enrico Ros 47315ed4a5 Drawing: improve provider names & icon 2025-04-25 01:06:22 -07:00
Enrico Ros d308739643 TS-based next.config & ~/server/env build 2025-04-18 19:12:14 -07:00
Enrico Ros 3d7e4ebb71 Alibaba Cloud support, incl Qwen Max, Plus, Turbo. Fixes #759 2025-02-19 15:54:34 -08:00
Enrico Ros d498287f76 Fix env var parsing 2025-01-28 21:43:36 -08:00
Enrico Ros ea9aaa6524 tRPC: relocate 2024-11-20 22:44:48 -08:00
Enrico Ros dfcd590fb3 tRPC: rename rooters 2024-11-20 22:43:13 -08:00
Enrico Ros 7c418966f0 _fetchFromTRPC: types for PUT and DELETE 2024-11-14 13:22:43 -08:00
Enrico Ros bddd1474c4 xAI: full support 2024-11-08 23:00:53 -08:00
Enrico Ros acc3bc4403 Simplify: remove backend analytics 2024-11-07 14:14:02 -08:00
Enrico Ros 414250f5d0 Bits 2024-11-06 04:59:17 -08:00
Enrico Ros 28ae055c28 More Aggregate Error unpacking 2024-11-03 19:44:03 -08:00
Enrico Ros 0f8fda5c43 Unpack Aggregate Errors 2024-11-03 16:09:06 -08:00
Enrico Ros f9262e0f1f SuperJSON: This hack is actually still needed. 2024-08-10 21:50:48 -07:00
Enrico Ros 2c3f237ccc SuperJSON: The NextJS-immutability hack doesn't seem to be needed anymore.
With this hack, deserialization of `json` arrays (rather than objects) was also broken,
and would break the downstream tRPC streaming functionality.
2024-08-10 17:16:59 -07:00
Enrico Ros 14c0e23b75 Test this. 2024-08-10 17:10:18 -07:00
Enrico Ros d3c940bebc OpenPipe: add recording support, including tags. #615 2024-08-05 16:09:50 -07:00
Enrico Ros 30ffd1a7ee InReferenceTo: multi-sentence, multi-role 2024-08-04 05:20:50 -07:00
Enrico Ros 273889eda0 tRPC fetchers: reduce log 2024-08-01 00:00:02 -07:00
Enrico Ros 4646394fe3 Server side nanoId: add prefix to distinguish us 2024-07-24 21:02:25 -07:00
Enrico Ros af65723a2c Groq: add failed_generation reporting 2024-07-24 20:49:14 -07:00
Enrico Ros c870047f44 Aix: complete the (non-throttled) ChatGenerateTransmitter 2024-07-24 03:36:05 -07:00
Enrico Ros 85a832007a AIX: GCTransmitter high-level logic, and remove IntakeHandler 2024-07-20 20:28:45 -07:00
Enrico Ros 8241386e7f AIX: PartTransmitter 2024-07-20 05:38:56 -07:00
Enrico Ros 9c84697094 AIX: Api: move away from Intake 2024-07-19 17:33:56 -07:00
Enrico Ros 9caf7763a5 Bits 2024-07-15 00:09:14 -07:00
Enrico Ros ccff695f3a Fixed tRPC-domain fetchers' errors 2024-07-14 03:08:02 -07:00
Enrico Ros 99087ccdf0 FetchFromTRPC: cleanup 2024-07-12 01:15:49 -07:00
Enrico Ros 6b11291284 AIX: Rename router 2024-07-09 10:07:44 -07:00
Enrico Ros 7cf30e3a3a Merge branch 'refs/heads/main' into feature-multipart
# Conflicts:
#	src/apps/chat/AppChat.tsx
2024-07-08 17:55:30 -07:00
Enrico Ros c773359c0b Update env. 2024-07-08 17:19:33 -07:00
Enrico Ros 7ff7e489ab Merge branch 'refs/heads/main' into feature-multipart
# Conflicts:
#	src/apps/chat/AppChat.tsx
#	src/apps/chat/components/ChatMessageList.tsx
#	src/apps/personas/creator/Creator.tsx
2024-07-07 04:43:21 -07:00
Sorawit Kongnurat 027f7deb3a feat: implement deepseek vendor 2024-07-07 16:02:08 +07:00
Enrico Ros 92b913be98 Aix: use backend fetchers 2024-07-06 05:52:11 -07:00