Attempting to add support for z.ai (GLM)#121
Attempting to add support for z.ai (GLM)#121procodingtools wants to merge 5 commits intosrbhptl39:mainfrom
Conversation
|
Hello @srbhptl39 @k0vah1911pepsi @hayeah, Considering GLM 4.5 is currently one of the best models for agentic tasks including coding, I believe the support for z.ai should be a top priority. Please add the support for z.ai at the earliest. Thank you |
Yes on its way |
|
Fixed issue with long text generation (like create new file) |
|
Thanks @procodingtools for adding z.ai support. I gave it a run and found the following: What Works: What does not work: Recommendations: |
@srbhptl39 i'm not sure if i made a mistake but here's how copy method looks like: |
- removed unecessary usage of getCMContent from rescript.js
|
Found a new workaround to retrieve text from the CM editor without relying on the copy button and without losing indentation. The copy-based approach had several drawbacks:
I think this new approach avoids those issues entirely. Note: tested only on Firefox |
|
@procodingtools Can you test in chromium based browsers? I find errors regading inline script execution which is not allowed, hence this does work there console logs: Try to see if this can be done without injecting script. |
Maybe we have to use chrome.scripting Since this is a cross browser extension, how to access chrome.x or browser.x ? This project doesn't contains polyfills.js |

Priority*
Purpose of the PR*
Add initial support for Z.ai (GLM), enabling the project to interact with and utilize z.ai
Changes*
ZAdapterREADME.mdHow to check the feature
pnpm zipReference