mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-22 07:02:16 +03:00
⭐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:
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 ' +
|
||||
|
||||
16
tests/unit/web-cookie-hailuo-web-11000.test.ts
Normal file
16
tests/unit/web-cookie-hailuo-web-11000.test.ts
Normal 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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user