Commit Graph

147 Commits

Author SHA1 Message Date
Enrico Ros 0adb5355c7 Debug Wire: mark sessions 2025-11-19 15:44:13 -08:00
Enrico Ros 6086455782 LLMs/AIX: Moonshot AI support 2025-11-09 20:15:02 -08:00
Enrico Ros 269d5989bc Fetchers: Error correction: callback before retry 2025-11-07 22:43:12 -08:00
Enrico Ros 70d2c09e81 Env: drop requirements on non-staging/non-prod 2025-11-05 09:01:47 -08:00
Enrico Ros 7e53a7bc2b Server: tRPC: Retriers: carve0out 429 quota 2025-10-28 15:59:05 -07:00
Enrico Ros ee6646a66f Server: abortable delay 2025-10-27 14:32:43 -07:00
Enrico Ros 1e56b36eae Server: move retriers, as it outgrew the original AIX.chatGenerate purpose 2025-10-27 09:58:46 -07:00
Enrico Ros e2253cde7f Server: tRCP fetchers & retrier: downgrade logging severity 2025-10-27 09:44:21 -07:00
Enrico Ros 6a4bfc1cf2 server: improve message 2025-10-25 15:27:25 -07:00
Enrico Ros fbb2f106f0 tRPC: edge procedure (semantics) 2025-10-24 12:41:15 -07:00
Enrico Ros 8197fed036 server: fetchers: explained the tRPC error 2025-10-24 10:57:34 -07:00
Enrico Ros b8cca72cf1 server: fetchers: errors: remove cause for security 2025-10-24 10:36:39 -07:00
Enrico Ros d20cafa22b server: fetchers: errors: match Vercel's edge runtime error messages (absence of _cause) 2025-10-24 10:31:51 -07:00
Enrico Ros 421a5ae681 server: report the error cat/codes to the client 2025-10-23 20:10:33 -07:00
Enrico Ros 49157b9efa server: fetchers: redo all with good error detection 2025-10-23 20:10:03 -07:00
Enrico Ros c11684a9cf server: improve error formatting, removing unneeded stacks 2025-10-23 20:08:02 -07:00
Enrico Ros 12aa812b37 server: improve safeErrorString 2025-10-23 20:08:02 -07:00
Enrico Ros a4516b5fa6 Wire/server: pretty-print server-side Zod errors in return messages #851 2025-10-20 14:43:35 -07:00
Enrico Ros 578bb93d8b Env: production helper fix 2025-10-19 14:45:50 -07:00
Enrico Ros b4c5a24864 Env: production helper 2025-10-19 12:53:27 -07:00
Enrico Ros 2b18cbc3b9 Errors: cleanup domains 2025-10-16 10:56:32 -07:00
Enrico Ros e4defc1baf tRPC Fetchers: improve logging 2025-10-15 19:10:46 -07:00
Enrico Ros 9ea859081d Error Message test 2025-10-15 18:40:47 -07:00
Enrico Ros 87d8320b31 tRPC: Fetchers: show warning also on network connection lost 2025-10-15 18:28:56 -07:00
Enrico Ros a4600a4d1d tRPC Fetchers: show content type on parse failures 2025-10-15 17:29:02 -07:00
Enrico Ros 2b3c1c38f3 tRPC Fetchers: improve error reporting at all 3 stages: connect, get response, parse contents 2025-10-15 12:58:24 -07:00
Enrico Ros 59f379f46b tRPC Fetchers: improve JSON decoding errors 2025-10-15 12:58:21 -07:00
Enrico Ros 2bc6ecbe4c tRPC: improve Abort support 2025-10-15 12:58:18 -07:00
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