Skip to content

config: switch AI model to GLM-4.7 Flash - #620

Merged
shunkakinoki merged 1 commit into
mainfrom
pr/auto-1768866235
Jan 19, 2026
Merged

config: switch AI model to GLM-4.7 Flash#620
shunkakinoki merged 1 commit into
mainfrom
pr/auto-1768866235

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Jan 19, 2026

Copy link
Copy Markdown
Owner

Changes

  • Switched AI model from Qwen3 Coder 30B to GLM-4.7 Flash in Codex and OpenCode configurations
  • Updated model references in Fish functions for coxel and coxelh
  • Updated dotagents submodule

Technical Details

  • Changed model ID from qwen/qwen3-coder-30b to zai-org/glm-4.7-flash
  • Updated LM Studio provider configuration across multiple config files

Testing

  • Configuration builds successfully

Generated with opencode by claude-3.5-sonnet


Summary by cubic

Switches local model to GLM-4.7 Flash via LM Studio and updates Codex/OpenCode configs and fish helpers to use the new profile. Replaces the previous Qwen3 Coder 30B and gpt-oss:120b usage to standardize local runs.

  • Refactors
    • Configs: replaced qwen/qwen3-coder-30b with zai-org/glm-4.7-flash in Codex and OpenCode; provider remains LM Studio.
    • Fish helpers: coxel and coxelh now call codex with --profile 'glm-4.7-flash'.
    • Submodule: bumped dotagents.

Written for commit e0663df. Summary will update on new commits.

Copilot AI review requested due to automatic review settings January 19, 2026 23:44
@shunkakinoki
shunkakinoki enabled auto-merge (squash) January 19, 2026 23:44
@mesa-dot-dev

mesa-dot-dev Bot commented Jan 19, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @shunkakinoki, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request upgrades the core AI model used within the system's Codex and OpenCode functionalities from the previous Qwen3 Coder 30B to the newer GLM-4.7 Flash. This change involves updating configuration files to point to the new model and adjusting associated Fish shell functions to ensure seamless integration. The overall impact is an enhancement of the system's AI capabilities by leveraging a different, potentially more performant, language model.

Highlights

  • AI Model Upgrade: The primary AI model used in Codex and OpenCode configurations has been switched from Qwen3 Coder 30B to GLM-4.7 Flash.
  • Configuration Updates: Model references and LM Studio provider configurations have been updated across relevant configuration files to reflect the new GLM-4.7 Flash model ID.
  • Fish Function Adjustments: The _coxel_function and _coxelh_function in Fish shell have been updated to utilize the new glm-4.7-flash profile for Codex commands.
  • Submodule Update: The dotagents submodule has been updated to its latest commit.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai

coderabbitai Bot commented Jan 19, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated AI model configurations across configuration files and shell functions. Replaced previous model references with GLM-4.7 Flash model integration. Updated submodule reference.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

This PR replaces references to the Qwen3 Coder model with the GLM-4.7 Flash model across configuration files and shell functions, updating LM Studio model entries, profile definitions, and function implementations.

Changes

Cohort / File(s) Summary
Model Profile Configuration
config/codex/config.toml
Removed [profiles.qwen3-coder-30b] profile and added [profiles.glm-4.7-flash] profile with zai-org/glm-4.7-flash model targeting lmstudio provider.
Model Registry
config/opencode/opencode.jsonc
Replaced LM Studio model entry from qwen/qwen3-coder-30b ("Qwen: Qwen3 Coder 30B A3B Instruct") to zai-org/glm-4.7-flash ("GLM-4.7 Flash (via LM Studio)").
Fish Shell Functions
home-manager/programs/fish/functions/_coxel_function.fish, home-manager/programs/fish/functions/_coxelh_function.fish
Updated model references from gpt-oss-120b to glm-4.7-flash in function descriptions, comments, and codex invocations.
Submodule Reference
dotagents
Updated submodule commit reference.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A model swap with care and grace,
Old Qwen fades, new GLM takes its place,
Through configs and fish functions we go,
LM Studio shimmers with a brighter glow! ✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pr/auto-1768866235

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mesa-dot-dev

mesa-dot-dev Bot commented Jan 19, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Switched AI model from Qwen3 Coder 30B to GLM-4.7 Flash for Codex and OpenCode.

What changed?

  • Switched AI model from Qwen3 Coder 30B to GLM-4.7 Flash in Codex and OpenCode configurations
  • Updated model references in Fish functions for coxel and coxelh
  • Updated dotagents submodule
  • Changed model ID from qwen/qwen3-coder-30b to zai-org/glm-4.7-flash
  • Updated LM Studio provider configuration across multiple config files

Description generated by Mesa. Update settings

@shunkakinoki
shunkakinoki disabled auto-merge January 19, 2026 23:45
@shunkakinoki
shunkakinoki merged commit ffd1bbe into main Jan 19, 2026
30 of 32 checks passed
@shunkakinoki
shunkakinoki deleted the pr/auto-1768866235 branch January 19, 2026 23:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AI model configuration across the project, replacing the Qwen3 Coder 30B model with GLM-4.7 Flash for local LM Studio-based operations.

Changes:

  • Updated Codex profile configuration to use glm-4.7-flash instead of qwen3-coder-30b
  • Modified Fish shell function descriptions and profile references to reflect the new model
  • Updated OpenCode model registry with GLM-4.7 Flash configuration

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
config/codex/config.toml Updated profile name and model ID from qwen3-coder-30b to glm-4.7-flash
config/opencode/opencode.jsonc Replaced Qwen model entry with GLM-4.7 Flash in model registry
home-manager/programs/fish/functions/_coxel_function.fish Updated function description and profile references from gpt-oss-120b to glm-4.7-flash
home-manager/programs/fish/functions/_coxelh_function.fish Updated function description and profile reference from gpt-oss-120b to glm-4.7-flash
dotagents Updated submodule commit reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,4 +1,4 @@
function _coxelh_function --description "Run Codex headlessly with local gpt-oss:120b model"
function _coxelh_function --description "Run Codex headlessly with local glm-4.7-flash model"

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function description references 'glm-4.7-flash' but the actual profile used in line 11 is 'glm-4.7-flash', while the old description mentioned 'gpt-oss:120b'. The description should match the profile name being used. However, looking at the actual change, the description was updated from 'gpt-oss:120b' to 'glm-4.7-flash', but line 11 uses profile 'glm-4.7-flash'. This inconsistency suggests the description was incorrectly updated - it should describe the profile being used, not a different model name.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +2
function _coxel_function --description "Run Codex with a free-form prompt using the local glm-4.7-flash model"
# Run Codex with a free-form prompt (spaces allowed) using the local glm-4.7-flash model

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function description and comment reference 'glm-4.7-flash model', but the actual profile being used is 'glm-4.7-flash' (seen in lines 6 and 9). Similar to the other function, there's a mismatch between the old description mentioning 'gpt-oss:120b' and the profile name. The descriptions should accurately reflect the profile being used.

Suggested change
function _coxel_function --description "Run Codex with a free-form prompt using the local glm-4.7-flash model"
# Run Codex with a free-form prompt (spaces allowed) using the local glm-4.7-flash model
function _coxel_function --description "Run Codex with a free-form prompt using the glm-4.7-flash profile"
# Run Codex with a free-form prompt (spaces allowed) using the glm-4.7-flash profile

Copilot uses AI. Check for mistakes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request switches the AI model to GLM-4.7 Flash across various configuration files and shell functions. The changes in config/codex/config.toml and config/opencode/opencode.jsonc correctly replace the qwen/qwen3-coder-30b model with zai-org/glm-4.7-flash. The fish functions _coxel_function and _coxelh_function are also updated to use the new glm-4.7-flash profile. The changes are consistent and look good. I've added one suggestion to refactor _coxel_function.fish to reduce code duplication, which will improve maintainability.

Comment on lines 5 to 10
if test (count $argv) -eq 0
codex --profile 'gpt-oss-120b' --full-auto -c model_reasoning_summary_format=experimental
codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental
else
set -l prompt (string join " " -- $argv)
codex --profile 'gpt-oss-120b' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt"
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and reduce code duplication, you can refactor this if/else block. By constructing the codex command arguments in a list, you can avoid repeating the common parts of the command.

  set -l cmd codex --profile 'glm-4.7-flash' --full-auto -c model_reasoning_summary_format=experimental
  if test (count $argv) -gt 0
    set -a cmd -- (string join ' ' -- $argv)
  end
  command $cmd

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants