modelmix 4.0.2 → 4.0.4

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/README.md CHANGED
@@ -29,7 +29,7 @@ ANTHROPIC_API_KEY="sk-ant-..."
29
29
  OPENAI_API_KEY="sk-proj-..."
30
30
  MINIMAX_API_KEY="your-minimax-key..."
31
31
  ...
32
- GOOGLE_API_KEY="AIza..."
32
+ GEMINI_API_KEY="AIza..."
33
33
  ```
34
34
 
35
35
  3. **Create and configure your models**:
package/demo/default.env CHANGED
@@ -5,6 +5,6 @@ GROQ_API_KEY="gsk_..."
5
5
  TOGETHER_API_KEY="49a96..."
6
6
  XAI_API_KEY="xai-..."
7
7
  CEREBRAS_API_KEY="csk-..."
8
- GOOGLE_API_KEY="AIza..."
8
+ GEMINI_API_KEY="AIza..."
9
9
  LAMBDA_API_KEY="secret_..."
10
10
  BRAVE_API_KEY="BSA0..._fm"
package/index.js CHANGED
@@ -1527,7 +1527,7 @@ class MixGoogle extends MixCustom {
1527
1527
  getDefaultConfig(customConfig) {
1528
1528
  return super.getDefaultConfig({
1529
1529
  url: 'https://generativelanguage.googleapis.com/v1beta/models',
1530
- apiKey: process.env.GOOGLE_API_KEY,
1530
+ apiKey: process.env.GEMINI_API_KEY,
1531
1531
  });
1532
1532
  }
1533
1533
 
@@ -1604,7 +1604,7 @@ class MixGoogle extends MixCustom {
1604
1604
 
1605
1605
  async create({ config = {}, options = {} } = {}) {
1606
1606
  if (!this.config.apiKey) {
1607
- throw new Error('Google API key not found. Please provide it in config or set GOOGLE_API_KEY environment variable.');
1607
+ throw new Error('Gemini API key not found. Please provide it in config or set GEMINI_API_KEY environment variable.');
1608
1608
  }
1609
1609
 
1610
1610
  const generateContentApi = options.stream ? 'streamGenerateContent' : 'generateContent';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modelmix",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "🧬 ModelMix - Unified API for Diverse AI LLM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "homepage": "https://github.com/clasen/ModelMix#readme",
49
49
  "dependencies": {
50
- "@modelcontextprotocol/sdk": "^1.11.2",
50
+ "@modelcontextprotocol/sdk": "^1.23.0",
51
51
  "axios": "^1.12.2",
52
52
  "bottleneck": "^2.19.5",
53
53
  "file-type": "^16.5.4",
package/test/README.md CHANGED
@@ -19,7 +19,7 @@ These tests require actual API keys and test the complete integration:
19
19
  # Set API keys first
20
20
  export OPENAI_API_KEY="sk-..."
21
21
  export ANTHROPIC_API_KEY="sk-ant-..."
22
- export GOOGLE_API_KEY="AIza..."
22
+ export GEMINI_API_KEY="AIza..."
23
23
 
24
24
  # Run only live integration tests
25
25
  npm test -- --grep "Live Integration"
package/test/setup.js CHANGED
@@ -26,7 +26,7 @@ process.env.GROQ_API_KEY = process.env.GROQ_API_KEY || 'gsk_test-dummy-key-for-t
26
26
  process.env.TOGETHER_API_KEY = process.env.TOGETHER_API_KEY || '49a96test-dummy-key-for-testing-purposes';
27
27
  process.env.XAI_API_KEY = process.env.XAI_API_KEY || 'xai-test-dummy-key-for-testing-purposes';
28
28
  process.env.CEREBRAS_API_KEY = process.env.CEREBRAS_API_KEY || 'csk-test-dummy-key-for-testing-purposes';
29
- process.env.GOOGLE_API_KEY = process.env.GOOGLE_API_KEY || 'AIzatest-dummy-key-for-testing-purposes';
29
+ process.env.GEMINI_API_KEY = process.env.GEMINI_API_KEY || 'AIzatest-dummy-key-for-testing-purposes';
30
30
  process.env.LAMBDA_API_KEY = process.env.LAMBDA_API_KEY || 'secret_test-dummy-key-for-testing-purposes';
31
31
  process.env.BRAVE_API_KEY = process.env.BRAVE_API_KEY || 'BSA0test-dummy-key-for-testing-purposes_fm';
32
32