Add TypeScript clients for GLM4.7 and Qwen3 models#44
Merged
Conversation
Co-authored-by: hiyouga <16256802+hiyouga@users.noreply.github.com>
… quoting Co-authored-by: hiyouga <16256802+hiyouga@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add TypeScript client based on glm4.7 and Qwen3
Add TypeScript clients for GLM4.7 and Qwen3 models
Jan 22, 2026
hiyouga
reviewed
Jan 22, 2026
…and SiliconFlow support Co-authored-by: hiyouga <16256802+hiyouga@users.noreply.github.com>
hiyouga
approved these changes
Jan 22, 2026
hiyouga
approved these changes
Jan 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports GLM4.7 and Qwen3 client implementations from Python to TypeScript.
Implementation
New clients (
src_ts/src/glm4_7/,src_ts/src/qwen3/)extra_bodyAutoClient routing (
src_ts/src/autoClient.ts)glm-4.7andqwen3model identifiersTest integration (
src_ts/tests/client.test.ts)GLM_API_KEYenvironment variable is set for direct GLM4.7 testingz-ai/glm-4.7andqwen/qwen3-30b-a3b-thinking-2507whenOPENROUTER_API_KEYis setPro/zai-org/GLM-4.7andQwen/Qwen3-8BwhenSILICONFLOW_API_KEYis setExample Usage
Both implementations match their Python counterparts in
src_py/agenthub/glm4_7/andsrc_py/agenthub/qwen3/.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.