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 +1 -1
- package/demo/default.env +1 -1
- package/index.js +2 -2
- package/package.json +2 -2
- package/test/README.md +1 -1
- package/test/setup.js +1 -1
package/README.md
CHANGED
package/demo/default.env
CHANGED
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.
|
|
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('
|
|
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.
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|