Add glm-4.7 model option and context mapping for Z.AI

05395831978a513495738ca40009ea72d1b4bdb5

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -0Ignore whitespace
public/index.html+1 -0
@@ -3811,6 +3811,7 @@
38113811 </select>
38123812 <h4 data-i18n="Z.AI Model">Z.AI Model</h4>
38133813 <select id="model_zai_select">
3814+ <option value="glm-4.7">glm-4.7</option>
38143815 <option value="glm-4.6">glm-4.6</option>
38153816 <option value="glm-4.6v">glm-4.6v</option>
38163817 <option value="glm-4.6v-flash">glm-4.6v-flash</option>
public/scripts/openai.js+1 -0
@@ -4769,6 +4769,7 @@ function getZaiMaxContext(model, isUnlocked) {
47694769 }
47704770
47714771 const contextMap = {
4772+ 'glm-4.7': max_200k,
47724773 'glm-4.6v': max_128k,
47734774 'glm-4.6v-flash': max_128k,
47744775 'glm-4.6': max_200k,