feat(models): add GLM-4.7 model support via OpenRouter

Merged
SH
9mo ago
+52-2

Changes

  • Added GLM-4.7 model configuration via OpenRouter preset
  • Updated model ID from z-ai/glm-4.7 to z-ai/glm-4-7
  • Set API endpoint to openai-completions
  • Increased context window to 131,072 tokens
  • Added pixe and pixeh fish shortcuts for quick GLM-4.7 access

Technical Details

  • Uses OpenRouter's preset system for model routing
  • Free API usage for the preset model
  • Convenience functions for running Pi agent with GLM-4.7

Testing

  • Configuration builds successfully
  • Fish functions registered properly

Generated with Claude Code by Claude 3.5 Sonnet


Summary by cubic

Add GLM-4.7 support via an OpenRouter preset and new fish shortcuts to run Pi agent with this model. Uses the openai-completions endpoint and increases the context window for longer prompts.

  • New Features

    • OpenRouter preset for GLM-4.7: @preset/glm-4-7 with a 131,072-token context window.
    • pixe and pixeh fish functions to run Pi agent with the preset (pixeh prompts headlessly).
  • Refactors

    • Updated model ID to z-ai/glm-4-7.
    • Set API to openai-completions.