| 128 | const sessionID = "test-session-123" |
| 129 | |
| 130 | const createModel = (providerID: string) => |
| 131 | ({ |
| 132 | id: `${providerID}/glm-4.6`, |
| 133 | providerID, |
| 134 | api: { |
| 135 | id: "glm-4.6", |
| 136 | url: "https://open.bigmodel.cn/api/paas/v4", |
| 137 | npm: "@ai-sdk/openai-compatible", |
| 138 | }, |
| 139 | name: "GLM 4.6", |
| 140 | capabilities: { |
| 141 | temperature: true, |
| 142 | reasoning: true, |
| 143 | attachment: true, |
| 144 | toolcall: true, |
| 145 | input: { text: true, audio: false, image: true, video: false, pdf: true }, |
| 146 | output: { text: true, audio: false, image: false, video: false, pdf: false }, |
| 147 | interleaved: false, |
| 148 | }, |
| 149 | cost: { |
| 150 | input: 0.001, |
| 151 | output: 0.002, |
| 152 | cache: { read: 0.0001, write: 0.0002 }, |
| 153 | }, |
| 154 | limit: { |
| 155 | context: 128000, |
| 156 | output: 8192, |
| 157 | }, |
| 158 | status: "active", |
| 159 | options: {}, |
| 160 | headers: {}, |
| 161 | }) as any |
| 162 | |
| 163 | for (const providerID of ["zai-coding-plan", "zai", "zhipuai-coding-plan", "zhipuai"]) { |
| 164 | test(`${providerID} should set thinking cfg`, () => { |