chore: remove hardcoded api keys from minimax test scripts
This commit is contained in:
+1
-1
@@ -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', {
|
||||
|
||||
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user