Skip to content

Custom OpenAI-compatible provider hardcodes /v1/chat/completions, incompatible with Z.ai (/v4/chat/completions) #3040

Closed

Description

@anbui0211

Problem

I'm trying to configure Z.ai (GLM-4.6) as a Custom AI provider in TablePro's AI Assistant settings.

Z.ai's OpenAI-compatible endpoint is:
https://api.z.ai/api/paas/v4/chat/completions

When I enter https://api.z.ai/api/paas/v4 as the Endpoint, Test Connection fails with:

Model not found: {"timestamp":"2026-09-21T16:05:33.970+00:00","status":404,"error":"Not Found","path":"/v4/v1/chat/completions"}

The resulting request path is /v4/v1/chat/completions, which suggests TablePro's Custom provider always appends a hardcoded /v1/chat/completions suffix to whatever Endpoint is entered. Since Z.ai's actual chat completions path is versioned as /v4/chat/completions (not /v1/), there's no Endpoint value that produces a correct URL — the app always adds an extra /v1 segment.

Proposed solution

Add an option to specify the full completions path directly.

Alternatives considered

No

Related database type

None

Activity

  1. added
    enhancement
    on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions