mirror of
https://github.com/xtekky/gpt4free.git
synced 2026-02-04 06:42:48 -08:00
- Changed `api_base` to `base_url` in multiple provider files for consistency. - Updated method signatures and internal references to use `base_url` instead of `api_base`. - Adjusted the `OpenaiTemplate` class to accommodate the new `base_url` parameter. - Enhanced the `ClientFactory` to support custom provider creation with `base_url`. - Modified API request handling in the backend to align with the new naming convention.
16 lines
520 B
Python
16 lines
520 B
Python
from __future__ import annotations
|
|
|
|
from ...template import OpenaiTemplate
|
|
|
|
class MiniMax(OpenaiTemplate):
|
|
label = "MiniMax API"
|
|
url = "https://www.hailuo.ai/chat"
|
|
login_url = "https://intl.minimaxi.com/user-center/basic-information/interface-key"
|
|
base_url = "https://api.minimaxi.chat/v1"
|
|
working = True
|
|
needs_auth = True
|
|
|
|
default_model = "MiniMax-Text-01"
|
|
default_vision_model = default_model
|
|
models = [default_model, "abab6.5s-chat"]
|
|
model_aliases = {"MiniMax": default_model}
|