Skip to content

feat(provider): add minimax provider prompt support#1398

Merged
MiMoHardFather merged 3 commits into
mainfrom
feat/minimax-provider-prompt
Jun 27, 2026
Merged

feat(provider): add minimax provider prompt support#1398
MiMoHardFather merged 3 commits into
mainfrom
feat/minimax-provider-prompt

Conversation

@MiMoHardFather

Copy link
Copy Markdown
Collaborator

Summary

  • Add a dedicated minimax system prompt (prompt/minimax.txt)
  • Wire it into the provider selector in system.ts matching the existing pattern
  • Includes GLM provider prompt support (rebased from upstream)

- Add src/session/prompt/minimax.txt with the system prompt for
  minimax-powered models.
- Wire PROMPT_MINIMAX into provider() in src/session/system.ts so
  models whose api.id contains 'minimax' receive the new prompt,
  matching the existing pattern for kimi/deepseek/glm/trinity.

Note: the prompt file is named minimax.txt while the matcher in
system.ts checks for the substring 'minimax'. The matching still
works because the matcher inspects model.api.id, not the filename,
but the filename/marker inconsistency is worth a review.
Wire a dedicated GLM system prompt (prompt/glm.txt) into the provider
selector in system.ts, matching the existing pattern used for deepseek
and kimi.
…-prompt

# Conflicts:
#	packages/opencode/src/session/system.ts
@MiMoHardFather MiMoHardFather merged commit 0abfd8a into main Jun 27, 2026
5 of 6 checks passed
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.

1 participant