feat: configure ai-kimi with Artemox API
This commit is contained in:
@@ -13,7 +13,7 @@ fail() { echo "[FAIL] $1"; FAIL=$((FAIL+1)); }
|
||||
# Extract sections
|
||||
GPT_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-gpt"/,/^GPTEOF/' "$SCRIPT")
|
||||
KIMI_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-kimi"/,/^KIMIEOF/' "$SCRIPT")
|
||||
GEMINI_SECTION=$(awk '/^cat > "\$BIN_DIR\/claude_gemini"/,/^GEMINIEOF/' "$SCRIPT")
|
||||
GEMINI_SECTION=$(awk '/^cat > "\$BIN_DIR\/ai-gemini"/,/^GEMINIEOF/' "$SCRIPT")
|
||||
|
||||
# ── ai-gpt: auto-install codex ────────────────────────────────────────────
|
||||
test_gpt_autoinstall() {
|
||||
@@ -51,14 +51,24 @@ test_kimi_no_proxy() {
|
||||
fi
|
||||
}
|
||||
|
||||
# ── Fix 5: re-validate after claude_gemini reauth (both 401 and 429) ─────────
|
||||
test_fix5_gemini_revalidate() {
|
||||
local count
|
||||
count=$(echo "$GEMINI_SECTION" | grep -c '_claude_test_api' || true)
|
||||
if [ "$count" -ge 2 ]; then
|
||||
ok "Fix5: _claude_test_api present in gemini reauth flow ($count occurrences)"
|
||||
# ── ai-kimi: Artemox config generation ───────────────────────────────────
|
||||
test_kimi_artemox_config() {
|
||||
if echo "$KIMI_SECTION" | grep -q 'api.artemox.com/v1' \
|
||||
&& echo "$KIMI_SECTION" | grep -q 'config.toml' \
|
||||
&& echo "$KIMI_SECTION" | grep -q 'default_model = "artemox/kimi-k2.6"'; then
|
||||
ok "ai-kimi: configures Artemox provider and kimi-k2.6 model"
|
||||
else
|
||||
fail "Fix5: _claude_test_api missing or only in one branch (found $count)"
|
||||
fail "ai-kimi: missing Artemox config generation"
|
||||
fi
|
||||
}
|
||||
|
||||
# ── ai-gemini: native launcher generation ─────────────────────────────────
|
||||
test_gemini_native_launcher() {
|
||||
if echo "$GEMINI_SECTION" | grep -q 'antigravity CLI (agy)' \
|
||||
&& echo "$GEMINI_SECTION" | grep -q 'https://antigravity.google/cli/install.sh'; then
|
||||
ok "ai-gemini: native agy launcher is generated"
|
||||
else
|
||||
fail "ai-gemini: missing native agy launcher generation"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -86,7 +96,8 @@ test_gpt_autoinstall
|
||||
test_gpt_no_proxy
|
||||
test_kimi_autoinstall
|
||||
test_kimi_no_proxy
|
||||
test_fix5_gemini_revalidate
|
||||
test_kimi_artemox_config
|
||||
test_gemini_native_launcher
|
||||
test_fix7_trap_tmp
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user