@jambonz/llm 0.5.6 → 0.5.7
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/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/test-kit/index.cjs +6 -0
- package/dist/test-kit/index.cjs.map +1 -1
- package/dist/test-kit/index.d.cts +1 -1
- package/dist/test-kit/index.d.ts +1 -1
- package/dist/test-kit/index.js +6 -0
- package/dist/test-kit/index.js.map +1 -1
- package/dist/{types-BEgQaQIb.d.cts → types-rZZBXYhB.d.cts} +10 -0
- package/dist/{types-BEgQaQIb.d.ts → types-rZZBXYhB.d.ts} +10 -0
- package/package.json +1 -1
package/dist/test-kit/index.cjs
CHANGED
|
@@ -117,6 +117,12 @@ async function* streamFromOpenAI(client, req, options) {
|
|
|
117
117
|
const param = options.tokensParam ?? (needsMaxCompletionTokens(req.model) ? "max_completion_tokens" : "max_tokens");
|
|
118
118
|
body[param] = effectiveMaxTokens;
|
|
119
119
|
}
|
|
120
|
+
if (req.providerParams) {
|
|
121
|
+
const bodyRecord = body;
|
|
122
|
+
for (const [key, value] of Object.entries(req.providerParams)) {
|
|
123
|
+
if (!(key in bodyRecord)) bodyRecord[key] = value;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
120
126
|
const t0 = process.hrtime.bigint();
|
|
121
127
|
let t1;
|
|
122
128
|
let t2;
|