Add MiniMax API support, Apple Container runtime, and stop script
Some checks failed
Bump version / bump-version (push) Has been cancelled
Sync upstream & merge-forward skill branches / sync-and-merge (push) Has been cancelled
Merge-forward skill branches / merge-forward (push) Has been cancelled
Update token count / update-tokens (push) Has been cancelled
Some checks failed
Bump version / bump-version (push) Has been cancelled
Sync upstream & merge-forward skill branches / sync-and-merge (push) Has been cancelled
Merge-forward skill branches / merge-forward (push) Has been cancelled
Update token count / update-tokens (push) Has been cancelled
- Add ASSISTANT_NAME and claude-minimax.sh for MiniMax API usage - Switch container runtime from Docker to Apple Container - Add CJK character restriction notice to CLAUDE.md files - Add stop.sh for graceful shutdown Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
24
claude-minimax.sh
Executable file
24
claude-minimax.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Launch Claude Code with MiniMax-M2.7 via MiniMax's Anthropic-compatible API
|
||||
# Usage: ./claude-minimax.sh [claude args...]
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
ENV_FILE="$SCRIPT_DIR/.env"
|
||||
|
||||
if [ ! -f "$ENV_FILE" ]; then
|
||||
echo "Error: .env not found at $ENV_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Source only the relevant variables from .env
|
||||
while IFS='=' read -r key value; do
|
||||
case "$key" in
|
||||
ANTHROPIC_BASE_URL|ANTHROPIC_API_KEY|ANTHROPIC_MODEL|\
|
||||
ANTHROPIC_SMALL_FAST_MODEL|ANTHROPIC_DEFAULT_SONNET_MODEL|\
|
||||
ANTHROPIC_DEFAULT_OPUS_MODEL|ANTHROPIC_DEFAULT_HAIKU_MODEL)
|
||||
export "$key=$value"
|
||||
;;
|
||||
esac
|
||||
done < "$ENV_FILE"
|
||||
|
||||
exec claude "$@"
|
||||
Reference in New Issue
Block a user