Skip to content

[SPEC-UI-001] GLM Provider Web UI Integration #19

@Workuul

Description

@Workuul

SPEC Reference

  • SPEC ID: SPEC-UI-001
  • Status: draft
  • Priority: high
  • Created: 2026-04-13

Problem

The GLM (Zhipu AI) LLM provider is fully implemented at the backend level but completely missing from the web UI. Users cannot select GLM from the provider dropdown, enter a GLM API key, or switch to GLM through the web interface.

Requirements Summary

  • REQ-UI-001: GLM shall appear in the provider dropdown alongside OpenAI, Anthropic, Qwen, and MiniMax
  • REQ-UI-002: Selecting GLM shall show the GLM API key form and hide others
  • REQ-UI-003: Selecting a non-GLM provider shall hide the GLM form
  • REQ-UI-004: Switching away from GLM shall not retain GLM key text in other forms
  • REQ-UI-005: Clicking Update while GLM is selected shall call /api/update-api-key with provider=glm
  • REQ-UI-006: GLM shall display as "GLM (Zhipu AI)" in user-facing labels

Acceptance Criteria

  • Given web UI loaded → GLM option visible in dropdown
  • Given GLM selected → GLM API key form appears, others hide
  • Given non-GLM selected after GLM → GLM form hides, correct form shows
  • Given GLM selected + API key entered + Update clicked → /api/update-api-key called with provider=glm
  • Edge: rapid provider switching works correctly

Scope

web_interface.py only — additive HTML/JS changes to the embedded template. No backend Python changes. MiniMax serves as the reference implementation pattern.


This issue was automatically created by MoAI from SPEC-UI-001.
SPEC location: .moai/specs/SPEC-UI-001/spec.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions