pgadmin4/web
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
..
migrations Core LLM integration infrastructure to allow pgAdmin to connect to AI providers. #9641 2026-02-17 17:16:06 +05:30
pgacloud Copyright updated for 2026 2026-01-05 13:33:45 +05:30
pgadmin Support /v1/responses for OpenAI models. #9795 2026-03-30 14:16:22 +05:30
regression Fixed Python & feature test failures caused by Werkzeug 3.1.7 rejecting empty Host header in CSRF token generation. 2026-03-26 17:59:58 +05:30
.editorconfig Fixed focus color issue for Alertify dialog buttons. Fixes #5292 2020-03-26 15:30:31 +05:30
.eslintrc.js Copyright updated for 2026 2026-01-05 13:33:45 +05:30
.yarnrc.yml Revert yarnrc.yml and yarn.lock 2024-01-24 18:55:32 +05:30
babel.cfg Update message catalog. 2022-04-01 17:22:16 +05:30
babel.config.json Migrate pgAdmin UI to use React 19. #8676 2025-10-24 08:26:10 +05:30
branding.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
config.py Added support for custom LLM provider URLs for OpenAI and Anthropic, allowing use of OpenAI-compatible providers such as LM Studio, EXO, and LiteLLM. #9703 2026-03-16 12:08:55 +05:30
jest.config.js Core LLM integration infrastructure to allow pgAdmin to connect to AI providers. #9641 2026-02-17 17:16:06 +05:30
package.json Revert "Update JavaScript dependencies." 2026-03-30 12:29:48 +05:30
pgAdmin4.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
pgAdmin4.wsgi Copyright updated for 2026 2026-01-05 13:33:45 +05:30
setup.py Load predefined users from a JSON file through command line. #9229 2026-02-24 16:46:31 +05:30
version.py Updated version for release v9.13 2026-03-02 14:11:36 +05:30
webpack.config.js Core LLM integration infrastructure to allow pgAdmin to connect to AI providers. #9641 2026-02-17 17:16:06 +05:30
webpack.shim.js Core LLM integration infrastructure to allow pgAdmin to connect to AI providers. #9641 2026-02-17 17:16:06 +05:30
yarn.lock Revert "Update JavaScript dependencies." 2026-03-30 12:29:48 +05:30