fix(providers): update hailuo-web domain to chat.minimax.io (#11000) (#11055)

5 — Atualiza domínio do provider hailuo-web para chat.minimax.io (#11000). Merge autorizado pelo operador (ordem explícita de prosseguir sem o smoke VPS da Hard Rule #18).
This commit is contained in:
Rouzbeh†
2026-08-22 03:40:10 +03:30
committed by GitHub
parent 8643e0f57c
commit 7c39e95972
4 changed files with 19 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ export const hailuo_webProvider: RegistryEntry = {
alias: "hailuo-web",
format: "openai",
executor: "hailuo-web",
baseUrl: "https://www.hailuo.ai",
baseUrl: "https://chat.minimax.io",
authType: "apikey",
authHeader: "bearer",
models: HAILUO_WEB_STATIC_MODELS,

View File

@@ -33,7 +33,7 @@ import { createHash } from "node:crypto";
import { BaseExecutor, type ExecuteInput } from "./base.ts";
import { makeExecutorErrorResult as makeErrorResult, sanitizeErrorMessage } from "../utils/error.ts";
const BASE_URL = "https://www.hailuo.ai";
const BASE_URL = "https://chat.minimax.io";
const API_PATH = "/v4/api/chat/msg";
const USER_AGENT =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36";

View File

@@ -356,7 +356,7 @@ export const WEB_COOKIE_PROVIDERS = {
icon: "auto_awesome",
color: "#5B21B6",
textIcon: "HL",
website: "https://hailuo.ai",
website: "https://chat.minimax.io",
authHint:
"Open hailuo.ai, log in, then open DevTools → Application → Local Storage → copy the " +
'"_token" value. device_id/uuid fingerprint fields are derived automatically; if ' +

View File

@@ -0,0 +1,16 @@
import { describe, it } from "node:test";
import assert from "node:assert/strict";
import { WEB_COOKIE_PROVIDERS } from "../../src/shared/constants/providers/web-cookie.ts";
import { hailuo_webProvider } from "../../open-sse/config/providers/registry/minimax/web/index.ts";
describe("hailuo-web domain updates (#11000)", () => {
it("hailuo-web website targets chat.minimax.io to avoid 301 redirect errors", () => {
const entry = WEB_COOKIE_PROVIDERS["hailuo-web"];
assert.ok(entry);
assert.equal(entry.website, "https://chat.minimax.io");
});
it("hailuo-web registry entry baseUrl targets chat.minimax.io", () => {
assert.equal(hailuo_webProvider.baseUrl, "https://chat.minimax.io");
});
});