fix: base url
This commit is contained in:
@@ -18,7 +18,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = "https://api.minimax.io/v1"
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]
|
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = os.getenv("MINIMAX_API_BASE", "https://api.minimax.io/v1")
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
|
|
||||||
def generate_music(
|
def generate_music(
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = os.getenv("MINIMAX_API_BASE", "https://api.minimax.io/v1")
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
|
|
||||||
def tts(
|
def tts(
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = "https://api.minimax.io/v1"
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
|
|
||||||
def _headers():
|
def _headers():
|
||||||
|
|||||||
@@ -19,7 +19,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = "https://api.minimax.io/v1"
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]
|
ASPECT_RATIOS = ["1:1", "16:9", "4:3", "3:2", "2:3", "3:4", "9:16", "21:9"]
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,11 @@ import argparse
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
API_KEY = os.getenv("MINIMAX_API_KEY")
|
API_KEY = os.getenv("MINIMAX_API_KEY")
|
||||||
API_BASE = "https://api.minimax.io/v1"
|
# China Mainland: https://api.minimaxi.com/v1
|
||||||
|
# Overseas: https://api.minimax.io/v1
|
||||||
|
API_BASE = os.getenv("MINIMAX_API_BASE")
|
||||||
|
if not API_BASE:
|
||||||
|
raise SystemExit("ERROR: MINIMAX_API_BASE is not set.")
|
||||||
|
|
||||||
I2V_MODELS = [
|
I2V_MODELS = [
|
||||||
"MiniMax-Hailuo-2.3",
|
"MiniMax-Hailuo-2.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user