Skip to content

feat: configurable chat web UI for interactive model testing#14

Open
gnodet wants to merge 1 commit into
prasadus92:mainfrom
gnodet:feat/chat-ui-configurable
Open

feat: configurable chat web UI for interactive model testing#14
gnodet wants to merge 1 commit into
prasadus92:mainfrom
gnodet:feat/chat-ui-configurable

Conversation

@gnodet

@gnodet gnodet commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Add a /chat endpoint serving a mini chat web UI for interactive testing of any model through the proxy. Supports model selection, temperature control, system prompts, streaming responses, and markdown rendering.

Configuration

The chat UI is enabled by default but can be disabled:

VERTEX_PROXY_ENABLE_CHAT_UI=false

When disabled, the /chat route is not registered and returns 404.

Changes

  • vertex_proxy/chat_ui.py — Self-contained HTML/CSS/JS chat interface
  • vertex_proxy/config.py — New enable_chat_ui setting (default: true)
  • vertex_proxy/main.py — Conditionally register the /chat route
  • tests/test_chat_ui.py — Tests for both enabled and disabled states
  • CHANGELOG.md / README.md — Documentation updates

Add a /chat endpoint serving a mini web UI for interactive testing of
any model through the proxy. Supports model selection, temperature
control, system prompts, streaming responses, and markdown rendering.

The chat UI is enabled by default but can be disabled by setting
VERTEX_PROXY_ENABLE_CHAT_UI=false. When disabled, the /chat route
is not registered and returns 404.

Includes tests for both enabled and disabled states.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant