@ericrisco/rsc 4.1.8 → 4.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -891,6 +891,43 @@ providers:
|
|
|
891
891
|
Dashboard: https://dashboard.cohere.com/api-keys
|
|
892
892
|
`COHERE_API_KEY` — secret.
|
|
893
893
|
|
|
894
|
+
- id: MINIMAX
|
|
895
|
+
category: ia_texto
|
|
896
|
+
detectors:
|
|
897
|
+
imports: ["@ai-sdk/minimax"]
|
|
898
|
+
env_vars: ["MINIMAX_API_KEY"]
|
|
899
|
+
deps: ["@ai-sdk/minimax"]
|
|
900
|
+
dashboard_url: "https://platform.minimax.io/console/keys"
|
|
901
|
+
env_example: |
|
|
902
|
+
MINIMAX_API_KEY=
|
|
903
|
+
# Use cn for a mainland China key.
|
|
904
|
+
MINIMAX_REGION=global
|
|
905
|
+
files:
|
|
906
|
+
test_connection.sh: |
|
|
907
|
+
#!/usr/bin/env bash
|
|
908
|
+
set -euo pipefail
|
|
909
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
910
|
+
source "$SCRIPT_DIR/.env"
|
|
911
|
+
: "${MINIMAX_API_KEY:?MINIMAX_API_KEY not set}"
|
|
912
|
+
case "${MINIMAX_REGION:-global}" in
|
|
913
|
+
global) base_url="https://api.minimax.io/v1" ;;
|
|
914
|
+
cn) base_url="https://api.minimax.cn/v1" ;;
|
|
915
|
+
*) echo "MINIMAX_REGION must be global or cn" >&2; exit 1 ;;
|
|
916
|
+
esac
|
|
917
|
+
curl -fsS --max-time 30 "$base_url/models" -H "Authorization: Bearer $MINIMAX_API_KEY" |
|
|
918
|
+
python3 -c 'import json, sys; models = json.load(sys.stdin)["data"]; print("Available models:", ", ".join(model["id"] for model in models))'
|
|
919
|
+
README.md: |
|
|
920
|
+
# MiniMax
|
|
921
|
+
Copy `.env.example` to `.env`, run `chmod 600 .env`, and set the key and region.
|
|
922
|
+
Run `./test_connection.sh` to list the models available to the account.
|
|
923
|
+
Text model IDs include `MiniMax-M3.1-Flash` and `MiniMax-M3`.
|
|
924
|
+
CREDENTIALS.md: |
|
|
925
|
+
# MiniMax credentials
|
|
926
|
+
For `MINIMAX_REGION=global`, get the key at https://platform.minimax.io/console/keys.
|
|
927
|
+
For `MINIMAX_REGION=cn`, get the key at https://platform.minimax.cn/console/keys.
|
|
928
|
+
Set `MINIMAX_API_KEY` to the key issued in that region.
|
|
929
|
+
Keep the key in the local `.env` file.
|
|
930
|
+
|
|
894
931
|
- id: MISTRAL
|
|
895
932
|
category: ia_texto
|
|
896
933
|
detectors:
|