model not listed | Open WebUI cached an older model list, the connection was not re-saved, or Model IDs (Filter) hides the model. | Confirm curl https://cloud-api.near.ai/v1/models returns z-ai/glm-5.2, re-save the connection, refresh the browser tab, restart Open WebUI if needed, and clear or update the model filter. |
401 | Missing, invalid, or expired NEAR AI Cloud API key. | Paste a valid NEAR AI Cloud API key into Open WebUI’s API key field. Open WebUI should send it as a bearer token; do not log or share the key while testing. |
Wrong base URL includes /chat/completions | A full request URL was pasted into Open WebUI’s URL field. | Use https://cloud-api.near.ai/v1 as the base URL. Keep /chat/completions only in curl or HTTP request URLs. |
| Connection verification fails but curl works | Open WebUI did not refresh the provider’s /models response or a model filter is blocking the picker. | Re-save the connection, restart Open WebUI, then manually add z-ai/glm-5.2 to Model IDs (Filter) if /v1/models works from curl. |
| Requests reach the wrong service | The URL field points at Open WebUI’s internal API route instead of the NEAR AI Cloud gateway. | Replace the upstream URL with https://cloud-api.near.ai/v1 and save the connection again. |
| Tools/function calling are ignored or emulated | The model’s Function Calling mode is left at Default, so Open WebUI uses prompt-based emulation instead of passing the OpenAI tools array. | Set Function Calling to Native in the model’s Advanced Params (Workspace -> Models -> z-ai/glm-5.2). |