@imenam/unified-llm-client 2.1.0 → 2.1.1
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/dist/core/Models.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../src/core/Models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,eAAO,MAAM,MAAM;sBAWZ,KAAK;oBAYL,KAAK;iBAYL,KAAK;WAWL,KAAK;eAWL,KAAK;mBAWL,KAAK;qBAWL,KAAK;kBAWL,KAAK;oBAWL,KAAK;oBAaL,KAAK;uBAKL,KAAK;qBAKL,KAAK;CACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../src/core/Models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,eAAO,MAAM,MAAM;sBAWZ,KAAK;oBAYL,KAAK;iBAYL,KAAK;WAWL,KAAK;eAWL,KAAK;mBAWL,KAAK;qBAWL,KAAK;kBAWL,KAAK;oBAWL,KAAK;oBAaL,KAAK;sBAWL,KAAK;uBAKL,KAAK;qBAKL,KAAK;CACX,CAAC"}
|
package/dist/core/Models.js
CHANGED
|
@@ -107,6 +107,16 @@ exports.MODELS = {
|
|
|
107
107
|
},
|
|
108
108
|
currency: "USD",
|
|
109
109
|
},
|
|
110
|
+
GEMINI_3_5_FLASH: {
|
|
111
|
+
provider: "gemini",
|
|
112
|
+
modelName: "gemini-3.5-flash",
|
|
113
|
+
costsPer1MTokens: {
|
|
114
|
+
prompt: 1.5,
|
|
115
|
+
prompt_cache: 0.15,
|
|
116
|
+
output: 9.0,
|
|
117
|
+
},
|
|
118
|
+
currency: "USD",
|
|
119
|
+
},
|
|
110
120
|
CLAUDE_SONNET_4_6: {
|
|
111
121
|
provider: "anthropic",
|
|
112
122
|
modelName: "claude-sonnet-4-6",
|
|
@@ -33,7 +33,6 @@ function main() {
|
|
|
33
33
|
// Si `tenantId` est manquant, on retourne `undefined` pour activer le fallback
|
|
34
34
|
// natif sur `process.env` ; si `tenantId` est inconnu, on refuse explicitement.
|
|
35
35
|
apiKeyResolver: (ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
console.log(" [server resolver] received context:", ctx);
|
|
37
36
|
const tenantId = ctx.tenantId;
|
|
38
37
|
if (!tenantId)
|
|
39
38
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imenam/unified-llm-client",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "A unified interface for multiple LLM providers (OpenAI, Gemini, Anthropic, Qwen) with tool-calling, streaming, and audio support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|