pgadmin4/web/pgadmin
Dave Page 9bb96360dd
Support /v1/responses for OpenAI models. #9795
* Support /v1/responses for OpenAI models. #9795

* Address CodeRabbit review feedback on OpenAI provider.

- Preserve exception chains with 'raise ... from e' in all
  exception handlers for better debugging tracebacks.
- Use f-string !s conversion instead of str() calls.
- Extract duplicated max_tokens error handling into a shared
  _raise_max_tokens_error() helper method.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* Validate api_url and use incomplete_details from Responses API.

- Strip known endpoint suffixes (/chat/completions, /responses) from
  api_url in __init__ to prevent doubled paths if a user provides a
  full endpoint URL instead of a base URL.
- Use incomplete_details.reason from the Responses API to properly
  distinguish between max_output_tokens and content_filter when the
  response status is 'incomplete', in both the non-streaming and
  streaming parsers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:16:22 +05:30
..
about Copyright updated for 2026 2026-01-05 13:33:45 +05:30
authenticate Fixed an issue where OAuth2 authentication fails with 'object has no attribute' if OAUTH2_AUTO_CREATE_USER is False. #9279 2026-03-10 12:24:55 +05:30
browser Fixed an issue where the default fillfactor value for B-tree indexes was incorrect. #9648 2026-03-27 11:20:40 +05:30
dashboard Fixed an issue where permissions page is not completely accessible on full scroll. #9721 2026-03-10 12:59:42 +05:30
help Copyright updated for 2026 2026-01-05 13:33:45 +05:30
llm Support /v1/responses for OpenAI models. #9795 2026-03-30 14:16:22 +05:30
misc Fixed Process Watcher garbled text on Windows with non-UTF-8 locales. #9457 2026-03-16 19:00:41 +05:30
model Upgrade ID column in the database table to BigInteger to support large OID values. #9223 2026-01-08 18:38:02 +05:30
preferences Fixed an issue where AI Reports are grayed out after setting an API key by auto-selecting the default provider. #9694 2026-03-16 14:24:09 +05:30
redirects Copyright updated for 2026 2026-01-05 13:33:45 +05:30
settings Fix Query Tool state restoration for new connections and queries. #8987 2026-01-05 16:32:49 +05:30
setup Copyright updated for 2026 2026-01-05 13:33:45 +05:30
static Fixed an issue where ALT+F5 for executing a query in the Query Tool shows a crosshair cursor icon for rectangular selection. #9570 2026-03-27 12:59:35 +05:30
templates Fix the Jinja2 error for python 3.8. 2024-10-18 19:30:42 +05:30
tools Fixed Geometry Viewer not auto-updating on first query execution after View/Edit Data to Query Tool promotion. #9392 2026-03-27 11:23:47 +05:30
translations Czech translation for version 9.14 2026-03-30 12:43:22 +05:30
utils Added support to download binary data from result grid. #4011 2026-03-10 12:25:21 +05:30
__init__.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
evaluate_config.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
messages.pot Updated message catalogs for v9.14 2026-03-26 17:06:45 +05:30
submodules.py Core LLM integration infrastructure to allow pgAdmin to connect to AI providers. #9641 2026-02-17 17:16:06 +05:30
user_login_check.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30