Add GLM-5 to Z.AI model list (#5138) * Initial plan * Add glm-5 to Z.AI model list with 200k context Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com>

1b5d65e34c763ea5bdb65ce67565c4f0d1a3e8ea

Copilot <198982749+Copilot@users.noreply.github.com>

Signed
2 files changed, +2 -0Ignore whitespace
public/index.html+1 -0
@@ -3865,6 +3865,7 @@
38653865 </select>
38663866 <h4 data-i18n="Z.AI Model">Z.AI Model</h4>
38673867 <select id="model_zai_select">
3868+ <option value="glm-5">glm-5</option>
38683869 <option value="glm-4.7">glm-4.7</option>
38693870 <option value="glm-4.7-flash">glm-4.7-flash</option>
38703871 <option value="glm-4.7-flashx">glm-4.7-flashx</option>
public/scripts/openai.js+1 -0
@@ -4821,6 +4821,7 @@ function getZaiMaxContext(model, isUnlocked) {
48214821 }
48224822
48234823 const contextMap = {
4824+ 'glm-5': max_200k,
48244825 'glm-4.7': max_200k,
48254826 'glm-4.7-flash': max_200k,
48264827 'glm-4.7-flashx': max_200k,