diff --git a/test_minimax.mjs b/test_minimax.mjs index 049223a..80c4527 100644 --- a/test_minimax.mjs +++ b/test_minimax.mjs @@ -2,7 +2,7 @@ import { createServer } from 'node:http'; async function test() { const LLM_ENDPOINT = 'https://api.minimax.io/v1'; - const LLM_API_KEY = 'sk-cp-UKWMS27cNQjuDxfHa14CsYKS1Q60ptZLhTtZYcB8iKgWJz9-C6st7jgmAsW7VTWQi83igf6mpc-6aIkt29wwWG_oCBYN0jITGAb06BA-MPjJgUEx7awu7zQ'; + const LLM_API_KEY = process.env.MINIMAX_API_KEY; const LLM_MODEL = 'MiniMax-M3'; const resp = await fetch(LLM_ENDPOINT + '/chat/completions', { diff --git a/test_minimax_crazy.mjs b/test_minimax_crazy.mjs index 8d3998e..94aee6f 100644 --- a/test_minimax_crazy.mjs +++ b/test_minimax_crazy.mjs @@ -2,7 +2,7 @@ import { createServer } from 'node:http'; async function test() { const LLM_ENDPOINT = 'https://api.minimax.io/v1'; - const LLM_API_KEY = 'sk-cp-UKWMS27cNQjuDxfHa14CsYKS1Q60ptZLhTtZYcB8iKgWJz9-C6st7jgmAsW7VTWQi83igf6mpc-6aIkt29wwWG_oCBYN0jITGAb06BA-MPjJgUEx7awu7zQ'; + const LLM_API_KEY = process.env.MINIMAX_API_KEY; const LLM_MODEL = 'MiniMax-M3'; const resp = await fetch(LLM_ENDPOINT + '/chat/completions', {